当前位置: 动力学知识库 > 问答 > 编程问答 >

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

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: