首页 >web前端 >html教程 >css 一个问题_html/css_WEB-ITnose

css 一个问题_html/css_WEB-ITnose

WBOY
WBOY原创
2016-06-24 12:25:351362浏览


我希望按照 .pic_upload 中指定的大小一行行排开,按道理占位应该是一个正方形,为什么确交错了?




 .pic_upload
 {
     width:184;
     height:184;
     float:left;
     margin:20px 0 0 20px;
     border:2px solid #5FA9E1;
  }



<div id="picload"><div class="pic_upload"><img src="/Pic/20131205/30424786-15b5-4ab2-a027-c898e7c21c01/m.jpg" alt=""></div><div class="pic_upload"><img src="/Pic/20131205/055642e6-b06f-4b09-8117-2840d0e677c4/m.jpg" alt=""></div><div class="pic_upload"><img src="/Pic/20131205/4c507710-3fa2-4fc5-ad5f-ca621dc3ed6b/m.jpg" alt=""></div><div class="pic_upload"><img src="/Pic/20131205/d7b56f62-b408-41ff-a635-668a048e2348/m.jpg" alt=""></div><div class="pic_upload"><img src="/Pic/20131205/d39c2238-f116-4c94-9ead-e203e35433b2/m.jpg" alt=""></div><div class="pic_upload"><img src="/Pic/20131205/f68d0b7b-e29d-4719-a003-8a3ec1871e6a/m.jpg" alt=""></div></div>


回复讨论(解决方案)

.pic_upload {     width:184px;     height:184px;     float:left;     margin:20px 0 0 20px;     border:2px solid #5FA9E1;  }


没加上单位..

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn