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.
可能重复: jQuery 可以获取与元素关联的所有 CSS 样式吗?
如何使用 jQuery 或 JavaScript 从元素中获取完整的 css 属性集作为字符串?
var x = $('myelement').css().toString();