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

css教程:CSS邊距margin屬性的應(yīng)用_CSS教程

編輯Tag賺U幣
教程Tag:暫無Tag,歡迎添加,賺取U幣!
The CSS margin properties define the space around elements.
CSS的邊距屬性定義元素四周的空間范圍


設(shè)置文字左邊距 Set the left margin of a text
This example demonstrates how to set the left margin of a text.
Examples 實(shí)例:
代碼調(diào)試框 [hl5o.cn]

[ 可先修改部分代碼 再運(yùn)行查看效果 ]


設(shè)置文字右邊距 Set the right margin of a text
This example demonstrates how to set the right margin of a text.
Examples 實(shí)例:
代碼調(diào)試框 [hl5o.cn]

[ 可先修改部分代碼 再運(yùn)行查看效果 ]


設(shè)置文字頂邊距 Set the top margin of a text
This example demonstrates how to set the top margin of a text.
Examples 實(shí)例:
代碼調(diào)試框 [hl5o.cn]

[ 可先修改部分代碼 再運(yùn)行查看效果 ]


設(shè)置底部邊距 Set the bottom margin of a text
This example demonstrates how to set the bottom margin of a text.
Examples 實(shí)例:
代碼調(diào)試框 [hl5o.cn]

[ 可先修改部分代碼 再運(yùn)行查看效果 ]


快速設(shè)置四邊邊距 All the margin properties in one declaration
This example demonstrates how to set a shorthand property for setting all of the margin properties in one declaration.
Examples 實(shí)例:
代碼調(diào)試框 [hl5o.cn]

[ 可先修改部分代碼 再運(yùn)行查看效果 ]


The CSS margin properties define the space around elements. It is possible to use negative values to overlap content. The top, right, bottom, and left margin can be changed independently using separate properties. A shorthand margin property can also be used to change all of the margins at once.
CSS邊距定義元素四周的空間范圍。它可讓內(nèi)容重疊。也可用分離的屬性分別對上,下,左,右進(jìn)行樣式改變。用margin屬性可以快速的設(shè)置所有邊距。

Note: Netscape and IE give the body tag a default margin of 8px. Opera does not! Instead, Opera applies a default padding of 8px, so if one wants to adjust the margin for an entire page and have it display correctly in Opera, the body padding must be set as well!
注重: 網(wǎng)景和IE默認(rèn)給body標(biāo)簽加上了8px的邊距。OPERA就沒有這樣的情況,相反的,OPERA有個(gè)默認(rèn)的8px填充,所以要讓頁面在幾個(gè)不同主流瀏覽器上的效果都相同就需要將屬性設(shè)置妥當(dāng)!

來源:無憂整理//所屬分類:CSS教程/更新時(shí)間:2006-11-09
相關(guān)CSS教程