"JQuery CSS 속성 변경"의 두 판 사이의 차이

(새 문서: ==example03.php== <source lang='html5'> <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script...)
 
23번째 줄: 23번째 줄:


*데모: http://jmnote.com/jq/example03.php
*데모: http://jmnote.com/jq/example03.php
==같이 보기==
*[[jQuery (2)]]
*[[jQuery (4)]]
[[분류:jQuery]]

2012년 2월 22일 (수) 00:06 판

1 example03.php

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(document).ready(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 }}