謝晒的PHP網頁設計
聯絡E-mail:
sean0704@gmail.com
站內搜尋
Saturday, August 11, 2012
[CSS] 解決div內的物件設定flaot時,div會縮小的問題
<div class="mydiv">
<h1 class="myh1">測試</h1>
</div>
相信大家在用CSS排版時,應該會遇到當我們把myh1設定成float:left時,mydiv就會變扁的情形,這時候只要將mydiv增加一個css屬性...
overflow:hidden;
div就不會變扁了...
No comments:
Post a Comment
Newer Post
Older Post
Home
View mobile version
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment