KS X 6047-4-2011 Document Object Model(DOM) level 2 style specification《文档对象模型(DOM)级别2样式规范》.pdf

上传人:eastlab115 文档编号:821624 上传时间:2019-02-12 格式:PDF 页数:114 大小:579.14KB
下载 相关 举报
KS X 6047-4-2011 Document Object Model(DOM) level 2 style specification《文档对象模型(DOM)级别2样式规范》.pdf_第1页
第1页 / 共114页
KS X 6047-4-2011 Document Object Model(DOM) level 2 style specification《文档对象模型(DOM)级别2样式规范》.pdf_第2页
第2页 / 共114页
KS X 6047-4-2011 Document Object Model(DOM) level 2 style specification《文档对象模型(DOM)级别2样式规范》.pdf_第3页
第3页 / 共114页
KS X 6047-4-2011 Document Object Model(DOM) level 2 style specification《文档对象模型(DOM)级别2样式规范》.pdf_第4页
第4页 / 共114页
KS X 6047-4-2011 Document Object Model(DOM) level 2 style specification《文档对象模型(DOM)级别2样式规范》.pdf_第5页
第5页 / 共114页
点击查看更多>>
资源描述

1、 KSKSKSKSKSKSKSK KSKSKS KSKSK KSKS KSK KS KS X 6047 4 (DOM) 2 KS X 6047 4:2011 2011 12 30 http:/www.kats.go.krKS X 6047 4:2011 :e- ( ) ( ) () () ( ) : () () DRM ( ) KS X 6047 4:2011 : (http:/www.standard.go.kr) : :2011 12 30 2011-0689 : e- : ( 02-509-7262) (http:/www.kats.go.kr). 10 5 , . KS X 6047

2、4:2011 i ii . iii 1 1 2 (DOM) .1 2.1 .1 2.2 1 2.3 (document extensions).5 2.4 5 3 (DOM) CSS 6 3.1 DOM 2 CSS .6 3.2 CSS 6 3.3 CSS2 27 A( ) IDL 53 A.1 .53 A.2 CSS .54 B( ) 67 B.1 .67 B.2 CSS .68 C( ) ECMAScript .85 C.1 .85 C.2 CSS .86 101 KS X 6047 4:2011 .102 KS X 6047 4:2011 ii . , , . , , . DOM . D

3、OM XML HTML programmatic interface , . DOM Level 2 . DOM Level 2 Core DOM Level 2 Views DOM Level 2 Events DOM Level 2 Style DOM Level 2 Traversal and Range DOM Level 2 HTML DOM Level 2 Style . KS X 6047 4:2011 iii World Wide Web Consortium(W3C) 2000 Document Object Model(DOM) Level 2 Style 1.0 , .

4、DOM Level 2 Style , DOM (API) . XHTML CSS . (DOM) Level 2 Style DOM Level 2 Core DOM Level 2 Views . KS X 6047 4:2011 (DOM) 2 Document Object Model(DOM) level 2 style specification 1 DOM Level 2 Style , CSS . 2 (DOM) 2.1 DOM 2 . DOM . . DOM DOMImplementation hasFeature(feature, version) “StyleSheets

5、” “2.0” . DOM 2 Core DOM 2 Core “Core” . DOM 2 DOM Level 2 Core . 2.2 . StyleSheet (DOM 2 .) StyleSheet . . HTML StyleSheet HTML LINK , STYLE . XML . IDL / DOM 2 .: interface StyleSheet readonly attribute DOMString type; attribute boolean disabled; readonly attribute Node ownerNode; readonly attribu

6、te StyleSheet parentStyleSheet; readonly attribute DOMString href; KS X 6047 4:2011 2 readonly attribute DOMString title; readonly attribute MediaList media; ; disabled boolean false, true . . false . disabled . href DOMString, , . null . HTML 4.0 href XML href - (pseudo-attribute) . media MediaList

7、, . ownerNode . MediaList . HTML 4.0 media XML - . disabled . ownerNode Node, . HTML LINK STYLE . XML (linking) . null . parentStyleSheet StyleSheet, . - (top-level) (inclusion) null . title DOMString, . ownerNode . HTML 4.0 LINK title XML - . type DOMString, . (:“text/css”). ownerNode . HTML 4.0 LI

8、NK type XML type - . StyleSheetList (DOM 2 .) StyleSheetList . StyleSheetList 0 . IDL / DOM 2 .: KS X 6047 4:2011 3 interface StyleSheetList readonly attribute unsigned long length; StyleSheet item(in unsigned long index); ; length unsigned long, StyleSheets . 0 (length) 1 . item . null . index unsi

9、gned long StyleSheet StyleSheetList , null . MediaList (DOM 2 .) MediaList . “all” . MediaList 0 . IDL / DOM 2 .: interface MediaList attribute DOMString mediaText; / raises(DOMException) on setting readonly attribute unsigned long length; DOMString item(in unsigned long index); void deleteMedium(in

10、 DOMString oldMedium) raises(DOMException); void appendMedium(in DOMString newMedium) raises(DOMException); ; length unsigned long, . 0 (length) 1 . KS X 6047 4:2011 4 mediaText DOMString (textual) . . DOMException SYNTAX_ERR: NO_MODIFICATION_ALLOWED_ERR: appendMedium newMedium . newMedium . newMedi

11、um DOMString DOMException INVALID_CHARACTER_ERR: NO_MODIFICATION_ALLOWED_ERR: . deleteMedium oldMedium . oldMedium DOMString DOMException NO_MODIFICATION_ALLOWED_ERR: NOT_FOUND_ERR: oldMedium . item index . index null . index unsigned long DOMString MediaList index null KS X 6047 4:2011 5 . 2.3 (doc

12、ument extensions) LinkStyle (DOM 2 .) LinkStyle . LinkStyle - (DOM 2 HTMLLinkElement, HTMLStyleElement, ProcessingInstruction). IDL / DOM 2 .: interface LinkStyle readonly attribute StyleSheet sheet; ; sheet StyleSheet, DocumentStyle (DOM 2 .) DocumentStyle . DocumentStyle Document - . IDL / DOM 2 .

13、: interface DocumentStyle readonly attribute StyleSheetList styleSheets; ; styleSheets StyleSheetList, . HTML HTML LINK STYLE . XML (XML-StyleSheet ). 2.4 HTML HTMLDocument 2 . LINK HTML (DOM 2 HTML HTML4.0 ) href , . STYLE HTML (DOM 2 HTML HTML4.0 ) , . KS X 6047 4:2011 6 HTML LINK HTML STYLE HTML

14、. . XML xml-stylesheetXML-StyleSheet XML . XML xml-stylesheetXML-StyleSheet . . 3 (DOM) CSS 3.1 DOM 2 CSS DOM 2 CSS CSS . CSS (rendering) (format) (presentation) . CSS . CSS , CSS . CSS . . HTML XML (embedded) , (Document Object Model Style Sheets) . , - . CSS , CSSStyleSheet . CSS . CSSRule CSS2 (

15、, import font-face ). . CSSStyleRule CSS (selector) CSSStyleDeclaration . , CSS2Properties . ( ) CSS level 2 (shortcut) . DOM CSS “ ” . 3.2 CSS KS X 6047 4:2011 7 CSS CSS . CSS . DOM “CSS” “2.0” DOMImplementation hasFeature(feature, version) . , DOM 2 DOM Level 2 Core “CORE” DOM 2 DOM Level 2 Views

16、“VIEW” . DOM 2 DOM Level 2 Core . CSSStyleSheet(DOM Level 2 .) CSSStyleSheet CSS (concrete) . , “text/css” . IDL / DOM Level 2 . 2: interface CSSStyleSheet :stylesheets:StyleSheet readonly attribute CSSRule ownerRule; readonly attribute CSSRuleList cssRules; unsigned long insertRule(in DOMString rul

17、e, in unsigned long index) raises(DOMException); void deleteRule(in unsigned long index) raises(DOMException); ; cssRules CSSRuleList, CSS . at- . ownerRule CSSRule, import , ownerRule CSSImportRule . , StyleSheet ownerNode null . , ownerRule null , ownerNode Node . deleteRule index unsigned long DO

18、MException INDEX_SIZE_ERR: NO_MODIFICATION_ALLOWED_ERR: . KS X 6047 4:2011 8 insertRule . (cascade) . rule DOMString . (set) . at- at- . index unsigned long . , . unsigned long DOMException HIERARCHY_REQUEST_ERR: . , import at- INDEX_SIZE_ERR: NO_MODIFICATION_ALLOWED_ERR: SYNTAX_ERR: CSSRuleList (DO

19、M Level 2 .) CSSRuleList CSS . CSSRuleList 0 . IDL / DOM Level 2 . 2: interface CSSRuleList readonly attribute unsigned long length; CSSRule item(in unsigned long index); ; length unsigned long, CSS . 0 length 1 . item CSS . CSS . null . index unsigned long KS X 6047 4:2011 9 CSSRule CSSRuleList ind

20、ex , null . CSSRule (DOM Level 2 .) CSSRule CSS (statement) . at- . , CSS . CSSUnknownRule . IDL / DOM Level 2 . 2: interface CSSRule / RuleType const unsigned short UNKNOWN_RULE = 0; const unsigned short STYLE_RULE = 1; const unsigned short CHARSET_RULE = 2; const unsigned short IMPORT_RULE = 3; co

21、nst unsigned short MEDIA_RULE = 4; const unsigned short FONT_FACE_RULE = 5; const unsigned short PAGE_RULE = 6; readonly attribute unsigned short type; attribute DOMString cssText; / raises(DOMException) on setting readonly attribute CSSStyleSheet parentStyleSheet; readonly attribute CSSRule parentR

22、ule; ; RuleType CHARSET_RULE CSSCharsetRule FONT_FACE_RULE CSSFontFaceRule IMPORT_RULE CSSImportRule MEDIA_RULE CSSMediaRule PAGE_RULE CSSPageRule STYLE_RULE CSSStyleRule UNKNOWN_RULE KS X 6047 4:2011 10 CSSUnknownRule cssText DOMString . . parentRule CSSRule, ( , media block ), (containing rule) . , null . parentStyleSheet CSSStyleSheet, type unsigned short, . (binding-specific) CSSRule . CSSStyleRule (DOM

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 标准规范 > 国际标准 > 其他

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1