jQuery CSS 속성 변경

Jmnote (토론 | 기여)님의 2014년 7월 8일 (화) 21:39 판 (→‎example03.php)

jQuery CSS 속성 변경
jQuery CSS 속성 바꾸기
jQuery 스타일 변경

1 example03.php

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script>
$(function() {
  $("#hello").css("background","gold");
  $("input[type='button']")
    .css("border","solid 3px red")
    .css("background","pink");
});
</script>
</head>
<body>
<div id="hello">안녕</div>
<input type="button" value="친구들 버튼" />
</body>
</html>

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}