getPropertyValue ,实现 js框架中 css 的最终调用的函数
,取得元素最终计算出的css 样式
var a = document.getElementById("content");
alert("style "+a.style.color);
alert("css "+window.getComputedStyle(a).getPropertyValue("color"));
- 上一篇 »超漂亮的前台页面模板——html+css+js+框架
- 下一篇 »01-商品查询业务逻辑的实现