테스트 사이트 - 개발 중인 베타 버전입니다

CSS3 사용자 인터페이스 - CSS3 크기 조정

· 8년 전 · 1500

CSS3 사용자 인터페이스

CSS3에는 크기 조정 요소, 외곽선 및 상자 크기 조정과 같은 새로운 사용자 인터페이스 기능이 있습니다.

이 장에서는 다음 사용자 인터페이스 특성에 대해 학습합니다.

  • resize
  • outline-offset

CSS3 크기 조정
이 resize속성은 요소의 크기를 사용자가 조절할 수 있는지 여부를 지정합니다.


 

div {
    resize: horizontal;
    overflow: auto;
}




<!DOCTYPE html>
<html>
<head>
<style> 
div {
    border: 2px solid;
    padding: 20px; 
    width: 300px;
    resize: horizontal;
    overflow: auto;
}
</style>
</head>
<body>

<p><b>Note:</b> Internet Explorer does not support the resize property.</p>

<div>Let the user resize the width of this div element.</div>

</body>
</html>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
3229
3228
3227
3226
3225
3224
3223
3222
3221
3220
3219
3218
3217
3216
3215
3214
3213
3212
3211
3210
3209
3208
3207
3206
3205
3204
3203
3202
3201
3200