0
我有一個代碼可以翻轉爲div。它在Firefox和Chrome中運行良好,但在IE瀏覽器中翻牌時,顯示正面顛倒而不顯示背面。Internet Explorer中的翻轉效果
這是代碼:
body {
background: #eee;
}
.card{
width: 300px;
height: 300px;
}
.content {
width: 300px;
height: 300px;
perspective: 500px;
box-shadow: 0 0 15px rgba(0,0,0,0.1);
transition: transform 1s;
transform-style: preserve-3d;
}
.card:hover .content {
transform: rotateX(180deg) ;
transition: transform 0.5s;
}
.front,
.back {
position: absolute;
height: 100%;
width: 100%;
background: white;
line-height: 300px;
color: #03446A;
text-align: center;
font-size: 60px;
border-radius: 5px;
backface-visibility: hidden;
}
.back {
background: #03446A;
color: white;
transform: rotateX(180deg);
}
<div class="card">
<div class="content">
<div class="front">
Front
</div>
<div class="back">
Back!
</div>
</div>
</div>
的Internet Explorer版本 – Vishwanath
@Vishwanath 11.0.96 – Crisiiii
IE11不支持'變換風格:?保存-3d'見http://caniuse.com/#feat=反式forms3d – Shaggy