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

css教程:CSS定位屬性的應(yīng)用_CSS教程

編輯Tag賺U幣
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
The CSS positioning properties allows you to position an element.
使用CSS定位屬性可以讓你定義元素的位置


如何讓一元素相對(duì)于原始位置進(jìn)行相對(duì)定位 Position:relative
This example demonstrates how to position an element relative to its normal position.
Examples 實(shí)例:
代碼調(diào)試框 [www.hl5o.cn]

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


如何使用絕對(duì)值來(lái)定位元素 Position:absolute
This example demonstrates how to position an element using an absolute value.
Examples 實(shí)例:
代碼調(diào)試框 [www.hl5o.cn]

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


何如設(shè)置元素的外形,并以這個(gè)外形顯示 Set the shape of an element
This example demonstrates how to set the shape of an element. The element is clipped into this shape, and displayed.
Examples 實(shí)例:
代碼調(diào)試框 [www.hl5o.cn]

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


Overflow
當(dāng)元素的內(nèi)容超過(guò)了指定的范圍,overflow屬性就可以指定應(yīng)該以怎樣的形式來(lái)處理

This example demonstrates how to set the overflow property to specify what should happen when an element's content is too big to fit in a specified area.
Examples 實(shí)例:
代碼調(diào)試框 [www.hl5o.cn]

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


如何垂直對(duì)齊一張圖片 Vertical align an image
This example demonstrates how to vertical align an image in a text.
Examples 實(shí)例:
代碼調(diào)試框 [www.hl5o.cn]

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


Z-index
Z-index可以讓一元素放到另一元素的"后面"

Z-index can be used to place an element "behind" another element.
Examples 實(shí)例:
代碼調(diào)試框 [www.hl5o.cn]

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


Z-index
上面例子中的元素現(xiàn)在Z-index值已經(jīng)發(fā)生的變化

The elements in the example above have now changed their Z-index.
Examples 實(shí)例:
代碼調(diào)試框 [www.hl5o.cn]

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


The CSS positioning properties allow you to specify the left, right, top, and bottom position of an element. It also allows you to set the shape of an element, place an element behind another, and to specify what should happen when an element's content is too big to fit in a specified area.
CSS定位屬性答應(yīng)你指定元素上下左右的位置。也答應(yīng)你設(shè)置元素的外形,將元素安置在另一個(gè)元素的后面,并指定當(dāng)元素內(nèi)容超出范圍后應(yīng)該怎么做。

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