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,我可以使用 element.css('margin-left') 来获取元素边距的真实像素值(如果它有margin: 0 auto;. 但似乎这在 IE8 中不起作用。它总是返回auto。那么如何在IE8中获取像素值呢?
margin: 0 auto;
auto