javascript with() 블럭
페이지 정보
작성자 허니무스 댓글 0건 조회 1,938회 작성일 22-05-04 14:03본문
<div id="sir">그누보드</div>
<script>
sir.style.background="blue";
with (sir) {
innerText = "비타주리";
with (style) {
color = "#ff0000";
padding = "10px";
border = "1px solid #cccccc";
borderRadius = "10px";
textAlign = "center";
}
}
</script>
댓글목록
등록된 댓글이 없습니다.