87,997
社区成员




<input id="btnChageColor" type="button" value="button" />
少写了个button
<style>
.div {
color:red;
}
.divyellow {
color:yellow;
}
</style>
$("#btnChageColor").click(function () {
$("#div3").attr("class", "divyellow");
});
<div id="div3" class="div">3</div>
jq@media all and (min-width: 720px) and (max-width:1000px) {
#newsContent p{
font-size:16px;
}
}
@media all and (min-width: 1001px) and (max-width:1240px) {
#newsContent p{
font-size:20px;
}
}