HTML DOM media 屬性
2017-08-06 HTML DOM media 屬性 HTML DOM Link 對(duì)象 定義和用法 media 屬性設(shè)置或返回顯示文檔的設(shè)備。 對(duì)于樣式信息而言,目標(biāo)媒介非常重要。移動(dòng)設(shè)備和桌面計(jì)算機(jī)的樣式可能是不同的。 語(yǔ)法 linkObj
HTML DOM id 屬性
2017-08-06 HTML DOM id 屬性 HTML DOM Link 對(duì)象 定義和用法 The id property sets or returns the id of a link element. 語(yǔ)法 linkObject.id=id 實(shí)例 The following example outputs the id of a link element: htmlheadlink rel=stylesheet type=text/c
HTML DOM hreflang 屬性
2017-08-06 HTML DOM hreflang 屬性 HTML DOM Link 對(duì)象 定義和用法 The hreflang property sets or returns the base language of the target URL. 語(yǔ)法 linkObject.hreflang=languagecode 實(shí)例 The following example returns the language code of the l
HTML DOM href 屬性
2017-08-06 HTML DOM href 屬性 HTML DOM Link 對(duì)象 定義和用法 The href property sets or returns the URL of the linked resource. 語(yǔ)法 linkObject.href=URL 實(shí)例 The following example changes style sheet: htmlheadlink rel=stylesheet type=text/c
HTML DOM disabled 屬性
2017-08-06 HTML DOM disabled 屬性 HTML DOM Link 對(duì)象 定義和用法 The disabled property sets or returns whether or not the target URL should be disabled. 語(yǔ)法 linkObject.disabled=true|false 實(shí)例 The following example disables the style shee
HTML DOM charset 方法
2017-08-06 HTML DOM charset 方法 HTML DOM Link 對(duì)象 定義和用法 The charset property sets or returns the character encoding of the target URL. 語(yǔ)法 linkObject.charset=character-encoding 實(shí)例 The following example sets the character encodin
HTML DOM select() 方法
2017-08-06 HTML DOM select() 方法 HTML DOM Text 對(duì)象 定義和用法 select() 方法用于選取文本域中的內(nèi)容。 語(yǔ)法 textObject.select() 實(shí)例 下面的例子可選取文本域中的內(nèi)容: htmlheadscript type=text/javascriptfunction
HTML DOM focus() 方法
2017-08-06 HTML DOM focus() 方法 HTML DOM Text 對(duì)象 定義和用法 focus() 方法用于賦予文本域焦點(diǎn)。 語(yǔ)法 textObject.focus() 實(shí)例 下面的例子可設(shè)置和移開文本域上的焦點(diǎn): htmlheadscript type=text/javascriptfunction
HTML DOM blur() 方法
2017-08-06 HTML DOM blur() 方法 HTML DOM Text 對(duì)象 定義和用法 blur() 方法用于從文本域移開焦點(diǎn)。 語(yǔ)法 textObject.blur() 實(shí)例 下面的例子可設(shè)置和移開文本域上的焦點(diǎn): htmlheadscript type=text/javascriptfunction
HTML DOM value 屬性
2017-08-06 HTML DOM value 屬性 HTML DOM Text 對(duì)象 定義和用法 value 屬性設(shè)置或返回文本域的值。 語(yǔ)法 textObject.value=text 實(shí)例 下面的例子可獲得文本域的值: htmlheadscript type=text/javascriptfunction alertValue()