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.
我在 CSS 中有这个:
.inner{ margin-left: -100% };
我将如何在 jquery 中分配它?
$('.inner').css("margin-left", -100%);
不起作用。
在值周围包含引号或双引号。
$('.inner').css("margin-left", "-100%");
试试这个 :