CSS caret-color, pointer-events 및 tab-size는 양식 입력 필드에 대해 덜 알려진 속성 중 일부입니다. caret-color 속성을 사용하면 깜박이는 캐럿의 색상을 지정할 수 있고 포인터 이벤트는 사용자가 요소를 찾는 것을 방지하는 데 도움이 됩니다. 마지막으로 tab-size는 탭에서 사용하는 공백의 양을 설정합니다.
다음 예는 이러한 속성 중 일부를 보여줍니다.
예시
<!DOCTYPE html>
<html>
<head>
<style>
body {
display: flex;
flex-direction: column;
background-color: mistyrose;
}
p {
white-space: pre;
}
p:last-of-type {
tab-size: 32;
-moz-tab-size: 32;
pointer-events: none;
}
</style>
</head>
<body>
<p> Ut sed felis lobortis, fermentum magna vitae, imperdiet lectus.</p>
<p> Ut sed felis lobortis, <a href=#>fermentum magna vitae</a>, imperdiet lectus.</p>
</body>
</html> 출력
이것은 다음과 같은 결과를 생성합니다 -

예시
<!DOCTYPE html>
<html>
<head>
<style>
form {
padding: 2%;
margin: 3%;
background-color: cadetblue;
text-align: center;
}
form:focus-within {
box-shadow: 0 0 10px rgba(0,0,0,0.6);
}
input {
caret-color: navy;
font-size: 40px;
font-weight: large;
}
</style>
</head>
<body>
<form>
<select>
<option>.</option>
<option>..</option>
<option>...</option>
</select>
<input type="text" value="glee" />
</form>
</body>
</html> 출력
이것은 다음과 같은 결과를 생성합니다 -
