發表於 程式分享

css : 2個div中間不換行

1.html

1.GIF

 

2.css

.container {
display:inline-block;
overflow:hidden;
white-space: nowrap;
}

.d1 {
display: inline-block;
}

.d2 {
white-space: nowrap;
display: inline-block;
}

la

發表留言