获取样式currentstyle(),getComputedStyle()
2015-11-06 13:51
597 查看
odiv.style.width;
其中的style只能获取行间样式
getComputedStyle()//只能在FF里用,第一个参数odiv,第二个参数没用随便填
其中的style只能获取行间样式
<div style="width:500px"></div>//行间样式currentstyle()//只能在IE里面用
getComputedStyle()//只能在FF里用,第一个参数odiv,第二个参数没用随便填
相关文章推荐
- css盒模型详解
- 今天又被css恶搞了!
- 在CSS中定义a:link、a:visited、a:hover、a:active顺序
- CSS段落缩进
- css定义有序列表样式以及counter-reset、counter-increment 的使用
- [转]DIV+CSS和TABLE的区别
- CSS的position属性完全解析
- 一波CSS高级实用技巧小结
- Emmet(Zen Coding) 可以快速编写html/css
- 使用HTML和CSS3绘制基本卡通图案的示例分享
- css padding和margin的百分比
- CSS自适应内容宽度示例
- css 数字出现滚动条解决
- css模板
- 一个网页菜单的CSS代码分析
- CSS中margin和padding的区别
- css3中webkit-box的用法
- css遮罩层
- CSS HTML自学
- HTML之css+div