반응형
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Transform</title>
<style>
.box{
position:absolute;
left:50px;
top:70px;
width:100px;
height:60px;
background:#fff;
border:2px solid green;
text-align:center;
line_height:60px;
}
.box:hover{
-webkit-transform:rotate(15deg);
-moz-transform: rotate(15deg);
-o-transform:rotate(15deg);
-ms-transform:rotate(15deg);
transform:rotate(15deg);
}
</style>
</head>
<body>
<div class="box">Mouse over</div>
</body>
</html>
반응형
'2019~2020 > 웹 프로그래밍 (PHP)' 카테고리의 다른 글
웹 폰트 적용하기 (0) | 2019.08.25 |
---|---|
웹 폰트 사용하기 (0) | 2019.08.25 |
내부 스타일시트 (0) | 2019.08.25 |
구구단 다 출력하기 (0) | 2019.08.25 |
구구단 (0) | 2019.08.25 |