JavaScript DHTML/Javascript Collections/rules — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 10:23, 26 мая 2010
"rules" Example
<source lang="html4strict">
<html> <head> <style type="text/css" id="myStyle"> .rule1 { font-family:Times New Roman; font-size:18pt; color:blue; } .rule2 { font-family:Verdana; color:red; } .rule3 { color:red; } .rule4 { font-family:Verdana; font-size:18pt;} .rule5 { font-size:18pt; color:red; } .rule6 { font-size:18pt; } .rule7 { font-family:Verdana; font-size:18pt;color:red; } </style></head> <body> <button onclick="alert(document.styleSheets(0).rules.length);">
Get number of rules
</button>
</source>