<html> <head><title>div2,3列显示</title> <style type="text/css"> .bgk { width: 500px; border: 1px solid #FF0000; } .bgk li{ float: left; position: relative; height: 50px; width: 50%; } </style> <style type="text/css"> #d1 span{ width:197px; height:18px; float:left; border:solid 1px blue;} </style> </head> <body> <!-- 2列显示 --> <div class="bgk"> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </div> <p></p> <p></p> <p></p> <!-- 3列显示 --> <div style="width:600px; height:60" id="d1"> <span>1</span> <span>1</span> <span>1</span> <span>1</span> <span>1</span> <span>1</span> <span>1</span> <span>1</span> <span>1</span> </div> </body> </html>
详细解决方案
div 二列和3列显示
热度:41 发布时间:2012-11-23 22:54:33.0
相关解决方案