0
這裏是爲了說明http://codepen.io/anon/pen/GynKp只有右手邊變換在Chrome
的HTML
<section>
<a href="#" class="btn"><span>Text<br />Line Two</span></text>
</section>
CSS
section{
width: 300px;
margin: 30px auto;
text-align: center;
border: 1px solid #ccc;
}
section a.btn{
margin: 30px auto;
display: block;
background-image:url('http://dummyimage.com/200x100/000/fff.png&text=+');
height: 100px;
width: 200px;
color: #fff;
line-height: 100px;
-webkit-transition: all 0.4s ease-out;
-moz-transition: all 0.4s ease-out;
-ms-transition: all 0.4s ease-out;
-o-transition: all 0.4s ease-out;
transition: all 0.4s ease-out;
}
section a.btn span{
display: inline-block;
vertical-align: middle;
line-height: normal;
-webkit-transition: all 1s ease-out;
-moz-transition: all 1s ease-out;
-ms-transition: all 1s ease-out;
-o-transition: all 1s ease-out;
transition: all 1s ease-out;
}
section:hover a.btn{
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
}
/* This reverses the text back to LTR */
section:hover a.btn span{
-webkit-transform: rotateY(-180deg);
-moz-transform: rotateY(-180deg);
-o-transform: rotateY(-180deg);
transform: rotateY(-180deg);
}
的問題codepen是在Chrome只a的右側在變換後可點擊。
如何使整個黑色鏈接可點擊?
它適用於我雖然.. – Siyah 2014-09-20 11:22:44