开发者

How to get the computed width of an element's border?

开发者 https://www.devze.com 2023-01-13 16:52 出处:网络
How can I get the 开发者_运维百科computed border width of a HTML element in Javascript? (Independent of where and how the border is specified.)You want something like window.getComputedStyle(), but th

How can I get the 开发者_运维百科computed border width of a HTML element in Javascript? (Independent of where and how the border is specified.)


You want something like window.getComputedStyle(), but that's not a 100% cross-browser function - you'll have to work a little harder for that.

0

精彩评论

暂无评论...
验证码 换一张
取 消