在Dreamweaver里设计页显示正常,但是实际运行就不对了1、设计效果:2、实际运行效果:CSS:#divtest{/*overflow:hidden;*/position:relative;width:500px;height:200px;border:dotted...
在Dreamweaver里 设计页显示正常,但是实际运行就不对了
1、设计效果:
2、实际运行效果:
CSS:
#divtest{
/*overflow:hidden;*/
position:relative;
width:500px;
height:200px;
border:dotted 2px #00CC33;
margin:0 auto;
clear:both;
}
#divtest ul{
position:absolute;
height:200px;
width:1500px;
overflow:hidden;
border:#C03 dotted 1px;
top:0;
left:0;
}
#divtest ul li{
float:left;
position:relative;
overflow:hidden;
width:500px;
height:200px;
}
#indiv{
position:absolute;
left:0;
top:180px;
width:500px;
height:20px;
overflow:hidden;
background-color:#000;
opacity:0.6;
}
#indiv span{
float:right;
width:15px;
margin:5px;
height:10px;
background-color:#F00;
opacity:1.0;
}
HTML:
展开