新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
HTML DOM display屬性語法實(shí)例解析
這里向大家描述一下HTML DOM display屬性的定義和用法,HTML DOM display屬性主要用來設(shè)置元素如何顯示,比如當(dāng)此屬性值為none時(shí),表示此元素不會被顯示,而block則表示此元素將顯示為塊級元素,此元素前后會帶有換行符。

創(chuàng)新互聯(lián)公司主要從事網(wǎng)站建設(shè)、成都做網(wǎng)站、網(wǎng)頁設(shè)計(jì)、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)壽縣,十多年網(wǎng)站建設(shè)經(jīng)驗(yàn),價(jià)格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):18980820575
HTML DOM display屬性定義和用法
此屬性主要用來設(shè)置元素如何顯示。
語法:
Object.style.display=value
可能的值
HTML DOM display屬性實(shí)例
本例設(shè)置不顯示元素:
Hello
This is some text. This is some text. This is some text.
- This is some text. This is some text. This is some text.
- This is some text. This is some text. This is some text.
- value="Do not display paragraph" />
【編輯推薦】
- CSS display屬性基本特性和語法
- 探究CSS hack使用原理 規(guī)則及弊端
- 深入探究DIV CSS布局中position屬性用法
- CSS屬性display:inline-block使用揭秘
- CSS hack:實(shí)現(xiàn)IE6、IE7、Firefox兼容
分享標(biāo)題:HTML DOM display屬性語法實(shí)例解析
網(wǎng)頁路徑:http://fisionsoft.com.cn/article/dpeocip.html


咨詢
建站咨詢
