如何防止最后一个div(类)不在?我把margin-right
放在.artist_wrap
上。我想当我把overflow: hidden
它会留在#music_videos_wrap
,但它消失。感谢任何会帮助我的人。div class last div goes html html css
HTML:
<div id="music_videos_wrap">
<div class="artist_wrap"></div>
<div class="artist_wrap"></div>
<div class="artist_wrap"></div>
<div class="artist_wrap"></div>
</div>
CSS:
#music_videos_wrap{
float:left;
margin:0 0 0 23px;
width:944px;
height: 257px;
background-color: red;
/*overflow:hidden;*/
}
.artist_wrap{
float:left;
width:190px;
height:257px;
background-color: green;
margin:0 62px 0 0;
}
[你能指出什么是错在这的jsfiddle ?](http://jsfiddle.net/hBF2x/)。我目前没有看到任何“发生”效应。 – Ohgodwhy 2012-07-08 15:35:36
它应该是4.artist_wrap对不起 – Aldin 2012-07-08 15:46:57
是否有可能“unmargin-right”最后一个.artist_wrap? – Aldin 2012-07-08 15:50:34