绝对定位的DIV宽度自适应的一个方法

时间:2015/12/2 15:22:00来源:互联网 作者:flyso 点击: 855 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><div style="background: #FFFDEC;-moz-opacity:0.9; filter:alpha(opacity=90); position:absolute; border:1px dashed #999;  top:250px; padding:20px 50px; left:100px; right:100px; text-align: center; font-size:12px;">
这是一个测试
<b style="float:right; height:0; overflow:hidden"></b>
</div>


Copyright © 2005 - 2016 flyso.cn. 飞搜 版权所有 鄂ICP备11002783号-3