2019年5月28日

document.defaultView.getComputedStyle

摘要: 我们在使用js过程中,有时候需要获取对象的宽度,如果对象本身是由内容撑开。宽度未知的情况,有一个强大的方法document.defaultView.getComputedStyle()可以获取对象的css样式;他返回的是一个CSS样式对象。 阅读全文

posted @ 2019-05-28 21:55 九涅 阅读(288) 评论(0) 推荐(0) 编辑

导航