-4
我无法让我的代码工作,我不知道为什么。 这里是jsfiddle的链接。jquery不能在css中工作
$(document).ready(funciton() {
$("button").click(function() {
$("h1").css("color", "red");
});
});
<h1>
Testing123
</h1>
<button>
Make the h1 red
</button>
它的工作原理,你只需要包括jQuery库。 https://jsfiddle.net/azizn/m76npdc2/1/ – Aziz
拼写错误的函数。 –