CSS 투명한 호버 효과
투명한 호버 효과
이 opacity속성은 종종 :hover 마우스 오버시 불투명도를 변경하기 위해 선택기 와 함께 사용됩니다 .



예
img {
opacity: 0.5;
filter: alpha(opacity=50); /* For IE8 and earlier */
}
img:hover {
opacity: 1.0;
filter: alpha(opacity=100); /* For IE8 and earlier */
}
<!DOCTYPE html>
<html>
<head>
<style>
img {
opacity: 0.5;
filter: alpha(opacity=50); /* For IE8 and earlier */
}
img:hover {
opacity: 1.0;
filter: alpha(opacity=100); /* For IE8 and earlier */
}
</style>
</head>
<body>
<h1>Image Transparency</h1>
<p>The opacity property is often used together with the :hover selector to change the opacity on mouse-over:</p>
<img src="img_forest.jpg" alt="Forest" width="170" height="100">
<img src="img_mountains.jpg" alt="Mountains" width="170" height="100">
<img src="img_fjords.jpg" alt="Fjords" width="170" height="100">
<p><b>Note:</b> In IE, a !DOCTYPE must be added for the :hover selector to work on other elements than the a element.</p>
</body>
</html>
Image Transparency
The opacity property is often used together with the :hover selector to change the opacity on mouse-over:

Note: In IE, a !DOCTYPE must be added for the :hover selector to work on other elements than the a element.
게시글 목록
| 번호 | 제목 |
|---|---|
| 3087 | |
| 3086 | |
| 3085 |
CSS
테이블 수평 분배기
|
| 3084 |
CSS
테이블 패딩
|
| 3083 |
CSS
테치블 수직 정렬
|
| 3082 |
CSS
테이블 수평 정렬
|
| 3081 |
CSS
표 너비와 높이
|
| 3080 |
CSS
표 축소 창
|
| 3079 |
CSS
표 테두리
|
| 3078 |
CSS
스타일리스트 색상
|
| 3077 |
CSS
목록 - 속기 속성
|
| 3076 | |
| 3075 | |
| 3074 | |
| 3073 | |
| 3072 |
CSS
CSS Links 배경색
|
| 3071 | |
| 3070 |
CSS
CSS Links 스타일 링크
|
| 3069 |
CSS
scale () 메서드
|
| 3068 |
CSS
rotate () 메서드
|
| 3067 | |
| 3065 |
CSS
부트 스트랩 아이콘
|
| 3064 | |
| 3063 |
CSS
Font Weight
1
|
| 3062 |
CSS
백분율과 em의 조합 사용
1
|
| 3061 | |
| 3060 |
CSS
Font Size 글자 크기
|
| 3059 | |
| 3058 | |
| 3057 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기