好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

CSS+DIV布局_html/css_WEB-ITnose

#Layer1 {	position:absolute;	width:98%;	height:1091px;	z-index:1;	left: 35px;	top: 10px;} 
想用CSS控制层宽度为整个浏览器宽度的98%,这样好像不能实现。各位有什么方法吗


回复讨论(解决方案)

你的意思是浏览器clientWidth减去滚动条宽度的98%?

     宽度百分比  *{	margin:0;	padding:0;}#Layer1 {    position:absolute;    width:98%;    height:1091px;    z-index:1;    left: 35px;    top: 10px;	background:blue;}  

查看更多关于CSS+DIV布局_html/css_WEB-ITnose的详细内容...

  阅读:32次