ASP.NET2.0 (C#) 开发webform
请问:用CSS+DIV来排版,如何使两个DIV左右并排????????
小弟始终没有找到使DIV并排的方法,好象DIV只能上下排列啊!!
小弟菜鸟一个,请大家指点一下,谢谢!!!
关注^^^^^^^^^^^^^^
------解决方案--------------------------------------------------------
.divmain{
border:1px solid #95CACA;
margin:0 auto;
height:800px;
}
#divright {
width:430px;
text-align:left;
float:right;
clear:right;
overflow:hidden;
}
#divleft {
width:550px;
text-align:left;
float:left;
clear:left;
overflow:hidden
}
------解决方案--------------------------------------------------------
关键是那个
float:right;
------解决方案--------------------------------------------------------
参考这个你就完全明白了:
http://blog.csdn.net/Eray/archive/2006/10/08/1325971.aspx
一楼的也对.
------解决方案--------------------------------------------------------
http://www.w3cn.org/article/layout/index
------解决方案--------------------------------------------------------
style= "float:left ";