tailieunhanh - JavaScript Bible, Gold Edition part 95
JavaScript Bible, Gold Edition part 95. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | 788 Part III Document Objects Reference pages Value Array of @page Rules Read-Only NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility An @page style rule defines the dimensions and margins for printed versions of a Web page. The pages property returns a collection of @page rules contained by the current styleSheet object. If no @page rules are defined in the style sheet the array has a length of zero. While an @page rule has the same properties as any rule object it has one more read-only property the pseudoClass property which returns any pseudo-class definitions in the rule. For example the following @page rules define different rectangle specifications for the left and right printed pages @page left margin-left 4cm margin-right 3cm @page right margin-left 3cm margin-right 4cm Values for the pseudoClass property of these two page rules are left and right respectively. To the W3C DOM an @page rule is just another rule object but one whose type property returns page. For more information about the paged media specification see http www. TR REC-CSS2 . Related Items None. parentStyleSheet Value styleSheet Object Read-Only NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility An imported style sheet is present thanks to the hosting of a styleSheet object created by a STYLE or LINK element. That host styleSheet object is referenced by the parentStyleSheet property. For most styleSheet objects that is those not imported via the import rule the parentStyleSheet property is null. Take note of the distinction between the parentStyleSheet property which points to a styleSheet object and the various properties that refer to the HTML element that owns the styleSheet object. Related Items None. Chapter 30 Style Sheet and Style Objects 789 readonly Value Boolean Read-Only NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility The readonly property s name is a bit misleading. Its Boolean value lets your script know
đang nạp các trang xem trước