Heim  >  Artikel  >  Web-Frontend  >  css 一个问题_html/css_WEB-ITnose

css 一个问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:25:351306Durchsuche


我希望按照 .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;  }


没加上单位..

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn