0
나는 (스팬을 커버 할) 인 td 엘리먼트를 가지고 있는데 이것에 대한 on hover 전환 효과를 만드는 방법에 문제가있다. 내가 원하는 것은 td 요소를 넘어서 조금 더 높아지고 현재 위치입니다.td에서 호버에서 css3 전환을 사용하는 방법?
이 내 html 코드입니다 :
<td class='page'>
<h2><a class='grouped_elements' href='#data111' >
<span>text</span>
</a></h2>
</td>
그리고 이것은 CSS입니다 :
.page {
width: 195px;
height: 150px;
position: relative;
margin: auto;
padding: 15px 0;
color: #212121;
-webkit-border-bottom-left-radius: 20px 500px;
-webkit-border-bottom-right-radius: 500px 30px;
-webkit-border-top-right-radius: 5px 100px;
-moz-border-radius-bottomleft: 20px 500px;
-moz-border-radius-bottomright: 500px 30px;
-moz-border-radius-topright: 5px 100px;
border-radius-bottomleft: 20px 500px;
border-radius-bottomright: 500px 30px;
border-radius-topright: 5px 100px;
background: #fcf59b;
background:
-webkit-gradient(
linear,
left top, left bottom,
from(#81cbbc),
color-stop(2%, #fcf59b)
);
background:
-moz-repeating-linear-gradient(
top,
#fcf59b,
#fcf59b 38px,
#81cbbc 40px
);
background:
repeating-linear-gradient(
top,
#fcf59b,
#fcf59b 38px,
#81cbbc 40px
);
-webkit-background-size: 100% 40px;
-webkit-box-shadow: 0 2px 10px 1px rgba(0,0,0,.2);
-moz-box-shadow: 0 2px 10px 1px rgba(0,0,0,.2);
box-shadow: 0 2px 10px 1px rgba(0,0,0,.2);
-webkit-transition: margin 0.5s ease-out;
-moz-transition: margin 0.5s ease-out;
-o-transition: margin 0.5s ease-out;
}
.page:before {
content: ' ';
background: url(tape.png) no-repeat;
width: 129px;
height: 38px;
position: absolute;
top: -15px;
left: 40%;
display: block;
}
.page a {
text-decoration:none;
}
.page span {
position:absolute;
width:100%;
height:100%;
top:0;
left: 0;
z-index: 1;
}
.page:hover {
margin-top: 10px;
}
도움말, 내가 누군가를 필요로?