10
Как изменить CSS с помощью jQuery?
Я пытаюсь изменить CSS с помощью jQuery: $(init); function init() { $("h1").css("backgroundColor", "yellow"); $("#myParagraph").css({"backgroundColor":"black","color":"white"); $(".bordered").css("border", "1px solid black"); } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> <div class="bordered"> <h1>Header</h1> <p id="myParagraph">This is some paragraph text</p> </div> Выполнить фрагмент кодаСкрыть результатыРазвернуть фрагмент Что мне здесь не хватает?
133
javascript
jquery
css