晕,什么叫画啊??
你就只是把这个值定位好就可以了啊<div style="position:relative; width:300px; height:100px; background:#000000;">
<div style="position:absolute; z-index:1; width:100px; height:30px; left:20px; top:20px; background:#FFFFFF"></div>
</div>你自己看一下这个例子,你自己看你怎么变化,他们的位置绝对位置遍吗?里面的DIV永远都在外面DIV得left:20px; top:20px; 之处,而不是整个网页的left:20px; top:20px;
你就只是把这个值定位好就可以了啊<div style="position:relative; width:300px; height:100px; background:#000000;">
<div style="position:absolute; z-index:1; width:100px; height:30px; left:20px; top:20px; background:#FFFFFF"></div>
</div>你自己看一下这个例子,你自己看你怎么变化,他们的位置绝对位置遍吗?里面的DIV永远都在外面DIV得left:20px; top:20px; 之处,而不是整个网页的left:20px; top:20px;
解决方案 »
- appendChlid的问题
- 一个jQuery问题
- ie6里window.onload用innerHTML忽略本地缓存的问题
- 0nMouseout回帖就给分
- 设置scr时含有部分是javascription的情况怎么写?
- 大家帮忙看看这个是怎么屏蔽的,即屏蔽查看源码
- 一个页面由两个不同的页面组成,如何在一个页面控制另一个页面的层是显示还是不显示?
- 大家帮忙!怎样用javascript把Date格式成 2004-05-04 15:30 ?!!!
- onchange大问题!高手请进
- 如何定义一个变量名,做为复选框的名字,
- 对话框怎么出不来?
- firefox 下的js提交不执行的bug 在线等ing……
<div style="position:relative; width:300px; height:100px; background:#000000;">
<img src="http://www.google.cn/intl/zh-CN/images/logo_cn.gif" width="200" height="200" id="bui1" name="bui1" />
<img src="http://www.google.cn/intl/zh-CN/options/icons/finance.gif" width="16" height="18" alt="受傷部位" id="maru1" style="position:absolute;z-index:1;left:20px; top:20px; " />
</div>
也是这么简单
这个里面的left和top的值就可以了
就像另外一个帖子我给你说的