getComputedStyle有伪类
来源:互联网 发布:达芬奇知乎 编辑:程序博客网 时间:2024/06/02 07:28
<!DOCTYPE html>
<html>
<head>
<metacharset="UTF-8">
<title></title>
<styletype="text/css">
h3:after{
content:"伪类";
}
</style>
</head>
<body>
<h3>小黄人</h3>
<scripttype="text/javascript">
varoH3 = document.getElementsByTagName("h3")[0];
alert(window.getComputedStyle(oH3,":after").content);
</script>
</body>
</html>
0 0
- getComputedStyle有伪类
- getComputedStyle
- getComputedStyle
- getComputedStyle
- getComputedStyle
- currentStyle、getComputedStyle
- getComputedStyle && currentStyle
- javascipt:getComputedStyle()
- getComputedStyle无伪类
- window.getComputedStyle
- getComputedStyle 使用方法
- getComputedStyle兼容
- document.defaultView.getComputedStyle
- document.defaultView.getComputedStyle
- window.getComputedStyle详解
- getComputedStyle、currentStyle 和getPropertyValue
- currentStyle和getComputedStyle
- getComputedStyle与currentStyle
- 破解工具之调试器和相关破解案例视频教程大全
- String to Integer (atoi)
- 如何自学机器学习
- BZOJ2134——单选错位
- getComputedStyle无伪类
- getComputedStyle有伪类
- 《剑指offer》-不用加减乘除做加法
- Jsp的作用域
- 克隆节点
- 编译Android系统AIDL模块出现couldn't find import for class错误的解决办法
- 留言板
- Ubuntu命令(1)
- 回到顶部无动画版
- java中的对象序列化