<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[CSS和JavaScript标签style属性对照表]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Wed, 10 Feb 2010 09:11:50 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	CSS语法 (不区分大小写)&nbsp;&nbsp;&nbsp;&nbsp;JavaScript语法 (区分大小写)<br/>border &nbsp;&nbsp;border<br/>border-bottom &nbsp;&nbsp;borderBottom<br/>border-bottom-color &nbsp;&nbsp;borderBottomColor<br/>border-bottom-style &nbsp;&nbsp;borderBottomStyle<br/>border-bottom-width &nbsp;&nbsp;borderBottomWidth<br/>border-color &nbsp;&nbsp;borderColor<br/>border-left &nbsp;&nbsp;borderLeft<br/>border-left-color &nbsp;&nbsp;borderLeftColor<br/>border-left-style &nbsp;&nbsp;borderLeftStyle<br/>border-left-width &nbsp;&nbsp;borderLeftWidth<br/>border-right &nbsp;&nbsp;borderRight<br/>border-right-color &nbsp;&nbsp;borderRightColor<br/>border-right-style &nbsp;&nbsp;borderRightStyle<br/>border-right-width &nbsp;&nbsp;borderRightWidth<br/>border-style &nbsp;&nbsp;borderStyle<br/>border-top &nbsp;&nbsp;borderTop<br/>border-top-color &nbsp;&nbsp;borderTopColor<br/>border-top-style &nbsp;&nbsp;borderTopStyle<br/>border-top-width &nbsp;&nbsp;borderTopWidth<br/>border-width &nbsp;&nbsp;borderWidth<br/>clear &nbsp;&nbsp;clear<br/>float &nbsp;&nbsp;floatStyle<br/>margin &nbsp;&nbsp;margin<br/>margin-bottom &nbsp;&nbsp;marginBottom<br/>margin-left &nbsp;&nbsp;marginLeft<br/>margin-right &nbsp;&nbsp;marginRight<br/>margin-top &nbsp;&nbsp;marginTop<br/>padding &nbsp;&nbsp;padding<br/>padding-bottom &nbsp;&nbsp;paddingBottom<br/>padding-left &nbsp;&nbsp;paddingLeft<br/>padding-right &nbsp;&nbsp;paddingRight<br/>padding-top &nbsp;&nbsp;paddingTop<br/>颜色和背景标签和属性对照<br/>CSS语法 (不区分大小写) &nbsp;&nbsp;JavaScript语法 (区分大小写)<br/>background &nbsp;&nbsp;background<br/>background-attachment &nbsp;&nbsp;backgroundAttachment<br/>background-color &nbsp;&nbsp;backgroundColor<br/>background-image &nbsp;&nbsp;backgroundImage<br/>background-position &nbsp;&nbsp;backgroundPosition<br/>background-repeat &nbsp;&nbsp;backgroundRepeat<br/>color &nbsp;&nbsp;color<br/>样式标签和属性对照<br/>CSS语法 (不区分大小写) &nbsp;&nbsp;JavaScript语法 (区分大小写)<br/>display &nbsp;&nbsp;display<br/>list-style-type &nbsp;&nbsp;listStyleType<br/>list-style-image &nbsp;&nbsp;listStyleImage<br/>list-style-position &nbsp;&nbsp;listStylePosition<br/>list-style &nbsp;&nbsp;listStyle<br/>white-space &nbsp;&nbsp;whiteSpace<br/>文字样式标签和属性对照<br/>CSS语法 (不区分大小写) &nbsp;&nbsp;JavaScript语法 (区分大小写)<br/>font &nbsp;&nbsp;font<br/>font-family &nbsp;&nbsp;fontFamily<br/>font-size &nbsp;&nbsp;fontSize<br/>font-style &nbsp;&nbsp;fontStyle<br/>font-variant &nbsp;&nbsp;fontVariant<br/>font-weight &nbsp;&nbsp;fontWeight<br/>文本标签和属性对照<br/>CSS语法 (不区分大小写) &nbsp;&nbsp;JavaScript语法 (区分大小写)<br/>letter-spacing &nbsp;&nbsp;letterSpacing<br/>line-break &nbsp;&nbsp;lineBreak<br/>line-height &nbsp;&nbsp;lineHeight<br/>text-align &nbsp;&nbsp;textAlign<br/>text-decoration &nbsp;&nbsp;textDecoration<br/>text-indent &nbsp;&nbsp;textIndent<br/>text-justify &nbsp;&nbsp;textJustify<br/>text-transform &nbsp;&nbsp;textTransform<br/>vertical-align &nbsp;&nbsp;verticalAlign<br/><br/>补充:<br/><br/>在建设网站的过程中，有时难免会要用js来控制css,其实这是十分简单的看下面的例子。<br/><br/>[code]html:&lt;div id=&quot;my_div&quot; style=&quot;background-color:red&quot;&gt;js控制css&lt;/div&gt;<br/><br/>js:document.getElementById(&quot;my_div&quot;).style.backgroundColor=&quot;red&quot;[/code]<br/><br/>其实就是用style对象访问css属性，值得注意的是样式属性的写法在css里是background-color,但是在js里就是backgroundColor,一般情况是把&quot;_&quot;去掉，第二个字母用大写。<br/><br/>如果用的是外联样式表，就用currentStyle对象代替style对象。如：<br/><br/>document.getElementById(&quot;my_div&quot;).currentStyle.backgroundColor=&quot;red&quot;<br/><br/>一个例子：<br/><br/><br/>[code]&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br/>&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br/>&lt;head&gt;<br/>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br/>&lt;title&gt;测试了&lt;/title&gt;<br/><br/>&lt;script type=&quot;text/javascript&quot;&gt;<br/>function divFloatRight(e) {<br/>e.style.backgroundColor = &quot;#ff0000&quot;;<br/>e.style.styleFloat = &quot;right&quot;;//IE<br/>e.style.cssFloat = &quot;right&quot;;//firefox and others explorer<br/>}<br/>function divFloatLeft(e) {<br/>e.style.backgroundColor = &quot;transparent&quot;;<br/>e.style.styleFloat = &quot;left&quot;;<br/>e.style.cssFloat = &quot;left&quot;;<br/>}<br/>&lt;/script&gt;<br/><br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>&lt;div&gt;<br/>&lt;div id=&quot;demo&quot; style=&quot;border: dashed 1px #000000;&quot; onmousemove=&quot;divFloatRight(this);&quot;<br/>onclick=&quot;divFloatLeft(this);&quot;&gt;<br/>JavaScript控制div的float属性，onmousemove~float:right,onclick~float:left。<br/>&lt;/div&gt;<br/>&lt;/div&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;[/code]
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] CSS和JavaScript标签style属性对照表]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>