
css
文章平均质量分 75
guoyp1990
这个作者很懒,什么都没留下…
展开
-
style、 currentStyle、 runtimeStyle介绍
style、 currentStyle、 runtimeStyle介绍 引自:http://hi.baidu.com/haoyan665/blog/item/6d5a995ce0c99747faf2c003.html 1、用到的基本概念: 内嵌样式(inline Style) :是写在Tag里面的,内嵌样式只对所有的Tag有效。 eg:这个Style定义里面的文字是20pt字体,字转载 2014-02-09 09:25:05 · 543 阅读 · 0 评论 -
style、currentStyle、runtimeStyle详解
1、obj.style只能获得内嵌样式(inline Style)就是写在Tag里面的,他访问不到那些链接的外部css和在head中用声明的style。 所以必须认识到在那些使用外部Css文件的页面中,如果用style赋值,如obj.style=“color:red”;显然效果是正确的,其中的奥秘确是只是在该对象的tag上多添加了一个style属性,按照由小到大的优先级呈现罢了。 2、ob转载 2014-02-09 09:41:25 · 780 阅读 · 0 评论