日期:2014-05-17 浏览次数:20754 次
<html> <head> <style type="text/css"> .main{border:none;width:100px;height:100px;} .left{border:1px solid red;width:50px;height:100px;position:relative;float:left;} .right(border:1px solid red;width:50px;height:100px;position:relative;float:left;) </style> </head> <body> <div class="main"> <div class="left">left</div> <div class="right">right</div> </div> </body> </html>
<div class="main"> <div class="left">left</div> <div class="left">right</div> </div>
------解决方案--------------------
.right(border:1px solid red;width:50px;height:100px;position:relative;float:left;)
括号错了