HTMLStyleElement
åºçº¿
广æ³å¯ç¨
*
èª 2015å¹´7æ èµ·ï¼æ¤ç¹æ§å·²å¨ä¸»æµæµè§å¨ä¸å¾å°æ¯æï¼å¯å¨å¤§å¤æ°è®¾å¤åæµè§å¨çæ¬ä¸æ£å¸¸ä½¿ç¨ã
* æ¤ç¹æ§çæäºé¨åçæ¯æç¨åº¦å¯è½ææä¸åã
HTMLStyleElement æ¥å£è¡¨ç¤º <style> å
ç´ ãå®ä» HTMLElement å LinkStyle ä¸ç»§æ¿å±æ§åæ¹æ³ã
è¿ä¸ªæ¥å£ä¸å 许修æ¹å å«å ¶ä¸ç CSSï¼å¤§å¤æ°æ åµä¸ï¼ã妿éè¦ä¿®æ¹ CSSï¼åå¾å ³äºä½¿ç¨å¨ææ ·å¼çä¿¡æ¯æ¥çå¨ DOM ä¸ç¨äºä¿®æ¹ç¹å® CSS 屿§ç对象ã
屿§
Inherits properties from its parent, HTMLElement, and implements LinkStyle.
HTMLStyleElement.media-
Is a
Stringrepresenting the intended destination medium for style information. HTMLStyleElement.type-
Is a
Stringrepresenting the type of style being applied by this statement. HTMLStyleElement.disabled-
Is a
Booleanvalue representing whether or not the stylesheet is disabled (true) or not (false). LinkStyle.sheetåªè¯»-
Returns the
StyleSheetobject associated with the given element, ornullif there is none HTMLStyleElement.scoped-
Is a
Booleanvalue indicating if the element applies to the whole document (false) or only to the parent's sub-tree (true).
æ¹æ³
No specific method; inherits properties from its parent, HTMLElement, and LinkStyle.
è§è
| è§è |
|---|
| HTML > # htmlstyleelement > |
æµè§å¨å ¼å®¹æ§
åè§
- The HTML element implementing this interface:
<style>. - Using dynamic styling information to see how to manipulate CSS.