日韩天天综合网_野战两个奶头被亲到高潮_亚洲日韩欧美精品综合_av女人天堂污污污_视频一区**字幕无弹窗_国产亚洲欧美小视频_国内性爱精品在线免费视频_国产一级电影在线播放_日韩欧美内地福利_亚洲一二三不卡片区

css浮動(dòng)邊距加倍錯(cuò)誤(雙倍邊距BUG)的解決辦法_Div+CSS教程

編輯Tag賺U幣
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!

如果某條邊與浮動(dòng)方向同向,則向該邊上的浮動(dòng)框應(yīng)用邊距時(shí),邊距會(huì)增加一倍。此錯(cuò)誤只影響一次或多次浮動(dòng)的某行中的第一次浮動(dòng)。

影響: Internet Explorer 6.0

該錯(cuò)誤只影響ie而不影響其他瀏覽器,我們可以考慮用hack來(lái)解決�。。�

_display:inline;

加入上面這句問(wèn)題解決

adobe官方解決方法:

Problem
When a margin is applied to a floated box on the same side as the direction the box is floated AND the floated box is the first one inside its containing box, the margin is doubled. (In other words, a left-floated box with margin-left set to move it away from its containing box will be twice as far away from the left edge of the containing box as intended.)

Solution
Specify display: inline; for the affected float.

Detailed description
This bug only reproduces when the floated element''s margin extends in the same direction as the float itself, and is between the float and the container box''s inside edge. Subsequent floats with similar margins won''t reproduce this bug- just the first float in any row of floated elements.

原文地址:http://www.adobe.com/cfusion/communityengine/index.cfm?event=findByTextId&productid=1&textid=DOUBLED_FLOAT_MARGIN
 

來(lái)源:模板無(wú)憂//所屬分類(lèi):Div+CSS教程/更新時(shí)間:2012-06-08
相關(guān)Div+CSS教程