<tr>
<td valign="top" colspan="2" class="CLEARSEPARATION"> </td>
</tr><html>
<link rel="stylesheet" href="josh.css">
<body bgcolor="#FFFFFF">
<div id="Description">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr><td valign="top" class="name">style, CSSStyleDeclaration</td><td valign="top" nowrap class="compatibility">NN <span class="emphasis">6</span> IE <span class="emphasis">4</span> DOM <span class="emphasis">2</span> </td>
</tr>
<tr>
<td valign="top" nowrap class="usage"><p class="literal"></p>
</td><td valign="top" nowrap class="requirements"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>In its most generic sense, a <span class="literal">style</span> object is the
access point for scripts to read and write individual style
attributes for a given element. This <span class="literal">style</span> object
exposes (or has the potential to expose) every style sheet attribute
supported by the browser (the kinds of CSS attributes described in
Chapter 11).
</p>
</td>
</tr>
<tr>
<td valign="top" colspan="2" class="CLEARSEPARATION"> </td>
</tr>
<tr>
<td colspan="2"><p> In practice, however, a <span class="literal">style</span> object that you
access through an HTML element object's
<span class="literal">style</span> property (one of the shared properties
described early in this chapter) is limited in scope: It reflects
only the CSS settings explicitly defined in the
element's tag via the <span class="literal">style</span>
attribute or settings assigned to the element's
<span class="literal">style</span> property via script. But other style sheets
associated with the browser (internal style sheets) and the document
(explicit style sheet rules defined in the
<span class="literal"><style></span> element and rules imported through
either a <span class="literal">link</span> element or an
<span class="literal">@import</span> rule) also affect the rendered
characteristics of the element. A union of all style sheet attributes
affecting an elementthe effective style definitionmay
be read, but through browser-dependent syntax. IE uses the
<span class="literal">currentStyle</span> property of an element, whereas
Netscape 6 uses the W3C DOM <span class="literal">window.getComputedStyle(
)</span> method. Both syntaxes return an object that lets scripts
inspect the value of each effective style attribute value.
</p>
</td>
</tr>
<tr>
<td valign="top" colspan="2" class="CLEARSEPARATION"> </td>
</tr>
<tr>
<td colspan="2"><p> While the three IE style-related objects (<span class="literal">style</span>,
<span class="literal">currentStyle</span>, and <span class="literal">runtimeStyle</span>)
return a <span class="literal">style</span> object with properties that expose
CSS style attributes, the situation is a little more complex on the
Netscape 6 side. On the one hand, Netscape 6 implements a version of
the W3C DOM <span class="literal">CSSStyleDeclaration</span> object that
exposes all the CSS attributes as properties. This is the version
accessed through an element object's
<span class="literal">style</span> property (just like IE, thus making an
element object's <span class="literal">style</span> property
work cross-browser). But when you read the effective style sheet (via
<span class="literal">window.getComputedStyle( )</span>), the object that comes
back does not expose the CSS attributes directly as properties.
Instead, you must use the <span class="literal">CSSStyleDeclaration</span>
methods (listed below) to inspect a specific attribute value by name.
It's a longer way to reach a particular effective
style attribute value, but very much in keeping with other
attribute-reading syntax deployed throughout the W3C DOM. The only
time this cross-browser disconnect affects you is when you need to
view the effective style attribute for an unmodified style. Once you
set an attribute value via the element object's
<span class="literal">style</span> property, you can read it from the
<span class="literal">style</span> property cross-browser.
</p>
</td>
</tr>
<tr>
<td valign="top" colspan="2" class="CLEARSEPARATION"> </td>
</tr>
<tr>
<td colspan="2"><p> This section lists the available <span class="literal">style</span> object
properties plus the Netscape 6 (W3C DOM) formal methods for accessing
those attributes. The W3C DOM lists a large percentage of the
<span class="literal">style</span> object properties under an object umbrella
called <span class="literal">CSS2Properties</span>. The specification offers
the <span class="literal">CSS2Properties</span> object as an optional
convenience for browsers. Fortunately for cross-browser scripters,
Netscape 6 implements <span class="literal">CSS2Properties</span> at least for
the element object <span class="literal">style</span> property.
</p>
</td>
</tr>
<tr>
<td valign="top" colspan="2" class="CLEARSEPARATION"> </td>
</tr>
<tr>
<td colspan="2"><p> The properties of the <span class="literal">style</span> object listed below
correspond to the CSS attributes. For more information on a
particular property, see the corresponding listing in Chapter 11.
</p>
</td>
</tr>
<tr>
<td valign="top" colspan="2" class="CLEARSEPARATION"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="objectmodelreference"><span class="title">Object Model Reference</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="CLEARSEPARATION"> </td>
</tr>
<tr>
<td>
<ul><li><span class="literal"></span><span class="literal">[window.]document.getElementById("</span><span class="replaceable">elementID</span><span class="literal">").style</span>
</li><li><span class="literal"></span><span class="literal">[window.]document.styleSheets[i].rules[j].style</span></li><li><span class="literal"></span><span class="literal">[window.]document.styleSheets[i].cssRules[j].style</span></li></ul>
</td>
</tr>
<tr>
<td valign="top" colspan="2" class="CLEARSEPARATION"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="objectspecificproperties"><span class="title">Object-Specific Properties</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="CLEARSEPARATION"> </td>
</tr>
<tr>
<td>
<table border="1"><tbody><tr><td><span class="literal">accelerator</span></td><td><span class="literal">azimuth</span></td><td><span class="literal">background</span></td>
</tr>
<tr><td><span class="literal">backgroundAttachment</span></td><td><span class="literal">backgroundColor</span></td><td><span class="literal">backgroundImage</span></td>
</tr>
<tr><td><span class="literal">backgroundPosition</span></td><td><span class="literal">backgroundPositionX</span></td><td><span class="literal">backgroundPositionY</span></td>
</tr>
<tr><td><span class="literal">backgroundRepeat</span></td><td><span class="literal">behavior</span></td><td><span class="literal">blockDirection</span></td>
</tr>
<tr><td><span class="literal">border</span></td><td><span class="literal">borderBottom</span></td><td><span class="literal">borderBottomColor</span></td>
</tr>
<tr><td><span class="literal">borderBottomStyle</span></td><td><span class="literal">borderBottomWidth</span></td><td><span class="literal">borderCollapse</span></td>
</tr>
<tr><td><span class="literal">borderColor</span></td><td><span class="literal">borderLeft</span></td><td><span class="literal">borderLeftColor</span></td>
</tr>
没有合适的资源?快使用搜索试试~ 我知道了~
基于html的web开发的小游戏,适合初学者
共2551个文件
htm:893个
html:617个
js:329个
1星 需积分: 13 20 下载量 29 浏览量
2015-11-16
15:57:19
上传
评论 2
收藏 37.17MB RAR 举报
温馨提示
基于web开发的的小游戏,适合初学者.简单,实用。附带软件
资源推荐
资源详情
资源评论
收起资源包目录
基于html的web开发的小游戏,适合初学者 (2551个子文件)
MMHTTPDB.asp 3KB
MMHTTPDB.asp 3KB
MMHTTPDB.asp 3KB
MMHTTPDB.asp 3KB
atadpswd 31B
安装VC80.bat 20B
Background.bmp 2.25MB
productLabel.bmp 34KB
AUMProduct.cer 1KB
mm_wizard_authenticate.cfc 8KB
FlashAuthor.cfg 782B
SQLServer7.cfm 4KB
SQLServer7.cfm 4KB
MMHTTPDB.cfm 3KB
MMHTTPDB.cfm 3KB
mm_wizard_login.cfm 1KB
Application.cfm 910B
Application.cfm 910B
JBIntrospector.class 15KB
TLDReader.class 3KB
MusicCollection.class 1KB
Album.class 920B
ssceit2.clx 956KB
sscefi2.clx 925KB
sscege2.clx 884KB
sscegn2.clx 880KB
sscesp2.clx 800KB
sscedu2.clx 748KB
ssceda2.clx 731KB
sscepo2.clx 367KB
sscefr2.clx 340KB
sscebr2.clx 320KB
ssceam2.clx 317KB
ssceca2.clx 317KB
sscenb2.clx 304KB
sscepb2.clx 304KB
sscesw2.clx 287KB
fields.css 4KB
Level3_2.css 2KB
Level3_3.css 2KB
Level3_1.css 2KB
mm_travel2.css 2KB
mm_spa.css 2KB
Accessible_Forms.css 2KB
mm_health_nutr.css 2KB
mm_training.css 2KB
mm_entertainment.css 2KB
Accessible_Design.css 2KB
Level2_Verdana_Forms.css 2KB
mm_restaurant1.css 1KB
Level2_Times_Forms.css 1KB
Level2_Verdana_Text.css 1KB
Level2_Arial_Forms.css 1KB
mm_lodging1.css 1KB
Accessible_Text.css 1KB
Level2_Times_Text.css 1KB
Level2_Arial_Text.css 1KB
a_tag_effects.css 1KB
stylesheet.css 523B
colors7.css 271B
colors5.css 254B
colors6.css 221B
Level1_Verdana.css 218B
colors4.css 184B
colors2.css 184B
colors3.css 184B
Level1_Times.css 176B
Level1_Arial.css 166B
colors1.css 159B
fh1.css 109B
def_profiles.def 142B
AdobePSL.dll 11.67MB
icudt30.dll 8.18MB
Fireworks Library.dll 6.38MB
AGM.dll 5.1MB
AdobePDFL.dll 4.44MB
adobelm.dll 2.54MB
CoolType.dll 2.46MB
AdobeLM_libFNP.dll 2.41MB
Resources.dll 1.96MB
xerces-c_2_6.dll 1.79MB
Xalan-C_1_10.dll 1.77MB
gdiplus.dll 1.63MB
dbghelp.dll 1015KB
FNP_Act_Installer.dll 913KB
ACE.dll 826KB
libeay32.dll 824KB
FnpCommsSoap.dll 678KB
icuuc30.dll 588KB
AdobeUpdater.dll 485KB
JP2KLib.dll 448KB
Workspace.dll 432KB
AdobeXMP.dll 384KB
adobe_epic.dll 364KB
NetIOSFTP.dll 348KB
msvcr71.dll 340KB
adobe_personalization.dll 339KB
adobe_registration.dll 334KB
adobe_eula.dll 333KB
BIB.dll 270KB
共 2551 条
- 1
- 2
- 3
- 4
- 5
- 6
- 26
资源评论
- Zoe_ZLX2016-09-25骗子,不能用
爆炸666
- 粉丝: 0
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功