jQuery .css()

  다른 뜻에 대해서는 CSS 문서를 참조하십시오.

1 개요[ | ]

jQuery .css()
  • CSS 속성을 읽거나 쓰는 메소드

2 예시[ | ]

<script src="//code.jquery.com/jquery.min.js"></script>
<script>
$(function() {
  console.log( $("p").css("background-color") ); // rgba(0, 0, 0, 0)
  $("p").css("background-color", "yellow");
  console.log( $("p").css("background-color") ); // rgb(255, 255, 0)
});
</script>
<p>안녕하세요</p>

3 같이 보기[ | ]

4 참고[ | ]

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