Javascript [Electronic resources] : The Definitive Guide (4th Edition) نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Javascript [Electronic resources] : The Definitive Guide (4th Edition) - نسخه متنی

David Flanagan

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید




Availability


DOM Level 2 CSS


Properties



readonly unsigned long length

The number
of CSSRule objects in this CSSRuleList array.


Methods


item( )

Returns the CSSRule object at the specified position. Instead of
explicitly calling this method, JavaScript allows you to simply treat
the CSSRuleList object as an array and to index it using standard
square-bracket array notation. If the specified index is too large,
this method returns null.


Description


This interface defines a read-only ordered list (i.e., an array) of
CSSRule objects. The length property specifies the
number of rules in the list, and the item( )
method allows you to retrieve the rule at a specified position. In
JavaScript, CSSRuleList objects behave like JavaScript arrays, and
you can query an element from the list using square-bracket array
notation instead of calling the item( ) method.
(Note, however, that you cannot assign new nodes into a CSSRuleList
using square brackets.)


See Also



Type of


CSSMediaRule.cssRules, CSSStyleSheet.cssRules


/ 844