会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
霜Zzs
博客园
首页
新随笔
联系
订阅
管理
2018年9月12日
原生js获取外联样式
摘要: 1、getComputedStyle(ele,null).fontSize //ele所需获取样式的元素节点 第二个参数填null就好。后面属性是你需要的样式属性。ie不支持。 2、ie:oBox.currentStyle.fontSize //ie内使用currentStyle 3、兼容: fun
阅读全文
posted @ 2018-09-12 14:41 霜~
阅读(360)
评论(0)
推荐(0)
编辑
公告