폰트 사이즈 5씩 증가
페이지 정보
본문
while 문으로 10px ~ 35px 크기 출력(5px 증가)
<hr>
<script>
var size = 10;
while(size <= 35){
document.write("<span ");
document.write("style = 'font-size:" + size + "px'>");
document.write(size + "px");
document.write("</span> ");
size += 5;
}
</script>
추천0 비추천0
- 이전글▶ 반복문 - while() 21.07.16
- 다음글prompt()이용 정수 n 값을 받고 while() 이용 0~n 까지의 합 21.07.16
댓글목록
등록된 댓글이 없습니다.