Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- sqld52회차
- 웹접근성
- sqld
- 로또 회차
- CSS
- 팝업레이어
- IP차단
- asp
- 프론트앤드키워드
- 바닐라 자바스크립트
- TweenMax.js
- SQL
- jQuery
- 애니메이션
- 웹표준
- 웹개발키워드
- 코딩공부
- Python
- JS
- 기초
- 바닐라자바스크립트
- VANILLA
- JSP
- git
- 텍스트조절
- github
- 마우스커서
- 바닐라스크립트
- Slide
- SQLD후기
Archives
- Today
- Total
목록텍스트조절 (1)
단비의 코딩 공부 blog
[jquery]버튼 클릭 시 텍스트 크기 조절
html - 텍스트 크기 + jquery $(document).ready(function() { $("div.button").click(function() { var $text_wrap = $("div.text_wrap"); var currentSize = $text_wrap.css("fontSize"); //alert(currentSize); var num = parseFloat(currentSize, 10); var unit = currentSize.slice(-2); if(this.id == "switcher-small"){ num *= 1.2; } else if(this.id == "switcher-large") { num /= 1.2; } $text_wrap.css("fontSize", num ..
javascript&jquery
2022. 12. 23. 09:48