Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
javascript/jQuery を使用して、ブラウザーの仕様を指定せずに、計算されたすべての CSS プロパティを取得しようとしています。それを行う方法はありますか?
ありがとうございました
はい、クロスブラウザーの例を次に示します。
例はかなり古いです。getComputedStyleよりも優先して使用するには、おそらくそれを逆にしたいと思うでしょうcurrentStyle。
getComputedStyle
currentStyle