Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- tag
- 일산소셜커머스
- 사도스키
- 야구분석
- 태그
- CSS1
- 경기도소셜커머스
- 충청도소셜커머스
- 자이언츠
- 야구토토
- 경남소셜커머스
- css2
- 부산소셜커머스
- 웹표준
- 토토
- 모든요소
- CSS
- 창원소셜커머스
- 대전소셜커머스
- 인천소셜커머스
- 롯데자이언츠
- 대구소셜커머스
- 토토분석
- HTML
- 롯데
- xhtml
- 울산소셜커머스
- 수원소셜커머스
- 프로토
- 경북소셜커머스
- Today
- 0
- Total
- 4,703,521
스티브홍쓰
jQuery - css적용하기 본문
jQuery에서 style값을 적용시킬때 사용하는 .css() 사용법을 알아보겠습니다.
.css( propertyName, value ) - 기본적인 형태로 속성명과 속성값을 입력
ex) jQuery(obj).css("width", "100px");
.css( propertyName, function(index, value) ) - function을 이용하여 속성명에 해당하는 현재의 속성값을 추출하여 원하는 형태로 변환
ex) jQuery(obj).css("width", function(index){ return index*100});
.css( map ) - map형태로 입력함 {key:value}
ex) jQuery(obj).css({"width":"100px","height":"100px"});
위의 3가지 방식 중 필요에 따라 사용하시면 됩니다. 보통은 .css("width", "100px") 이 방식을 많이 쓰지만 때에 따라 많은 스타일을 적용할려면 map방식을 사용하시면 편리하실테고 두번째 .css( propertyName, function(index, value) ) 이방식은 사용자의 이벤트 발생때 스타일 변경에 사용하시면 요긴하게 쓰일듯 합니다.
8 Comments
-
ニューバランス スニーカー 2014.08.25 22:09 이용약관위배로 관리자 삭제된 댓글입니다.
-
カナダグース ジャスパー 2014.08.26 15:29 이용약관위배로 관리자 삭제된 댓글입니다.
-
アディダスオリジナルス 2014.08.27 22:23 이용약관위배로 관리자 삭제된 댓글입니다.
-
財布 ボッテガ 2014.08.28 17:54 좋은
던드(P8, sitting outside the person lion and the monkey king, the original has been Phnom Penh Museum)
(P9, exquisite banteay srei Temple)
size can not exceed the king's temple, in detail. The Queen's palace carving is all Angkor Wat site in the most exquisite fine beauty. No matter the lintel, walls or windows, can carve must be strict in one's demands그뉴 -
アディダスショップ 2014.08.29 12:42 이용약관위배로 관리자 삭제된 댓글입니다.
-
アディダスオリジナルス 2014.08.30 16:41 좋은
는상was drinking beer, watching the ball
German beer culture long-standing, almost can be traced back to the era of ancient Rome, people have found some beer containers containing nearly 3000 years in northern bavaria. Development up to now, mentioned the "beer" word, we intuitively first to associate state is afraid of germany. German beer not only pure, but also to a wide variety of famous 데일 -
Bottega 財布 2014.09.02 15:08 이용약관위배로 관리자 삭제된 댓글입니다.
-
アディダスショップ 2014.09.03 15:06 좋은
적종what are the reasons for our thinking has been a male dominated Germany and Japan will appear this kind of circumstance, because if people see this message is certainly open eyes that if this is true, but it exists in German and Japanese society.
recently saw a news survey, there are many men accustomed to pee sitting down in Germany, and this trend is more and more obvious in Japan,하비