Html 此三维横幅在Internet Explorer上无法正常工作
此滚动3D多维数据集示例在Internet Explorer上无法正常工作。 必须像在其他浏览器中一样360度旋转。 缺少哪些供应商前缀 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节Html 此三维横幅在Internet Explorer上无法正常工作,html,css,internet-explorer,Html,Css,Internet Explorer,此滚动3D多维数据集示例在Internet Explorer上无法正常工作。 必须像在其他浏览器中一样360度旋转。 缺少哪些供应商前缀 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节 随机文本提交后,而不是更多的细节 /* animation speed */ .container { -webkit-animation: rot
/* animation speed */
.container {
-webkit-animation: rotate 18s infinite linear;
animation: rotate 18s infinite linear;
}
/* native */
.cube { transform:scaleX(.7) scaleY(.7); }
* { margin:0; padding:0; outline:none; box-sizing: border-box; }
.stage { width:240px; height:360px; overflow:hidden; }
.cube {
width:240px;
height:400px;
margin-top:-20px;
-ms-perspective:1000px;
-webkit-perspective: 1000px;
perspective: 1000px;
-ms-perspective-origin: center center;
-webkit-perspective-origin: center center;
perspective-origin: center center;
}
.container {
display:block;
width: 240px;
height: 400px;
-ms-transform-style: preserve-3d;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.side {
display:block;
position: absolute;
width: 240px;
height: 400px;
background-position:center center;
background-repeat:no-repeat;
background-size:cover;
}
.face1 {
-webkit-transform: translateZ(120px);
transform: translateZ(120px);
background-color: green;
}
.face2 {
-webkit-transform: translateX(120px) rotateY(90deg);
transform: translateX(120px) rotateY(90deg);
background-color: red;
}
.face3 {
-webkit-transform: translateZ(-120px) scale(-1, 1);
transform: translateZ(-120px) scale(-1, 1);
background-color: teal;
}
.face4 {
-webkit-transform: translateX(-120px) rotateY(90deg) scale(-1, 1);
transform: translateX(-120px) rotateY(90deg) scale(-1, 1);
background-color: black;
}
@-webkit-keyframes rotate { 100% { -webkit-transform: rotateY(-360deg); transform: rotateY(-360deg); } }
@keyframes rotate { 100% { -webkit-transform: rotateY(-360deg); transform: rotateY(-360deg); } }
</style>
</head>
<body cz-shortcut-listen="true">
<div class="stage">
<div class="cube">
<a class="container" href="">
<span class="face1 side"></span>
<span class="face2 side"></span>
<span class="face3 side"></span>
<span class="face4 side"></span>
</a>
</div>
</div>
</body></html>
/*动画速度*/
.容器{
-webkit动画:旋转18秒无限线性;
动画:旋转18秒无限线性;
}
/*土生土长的*/
.cube{transform:scaleX(.7)scaleY(.7);}
*{边距:0;填充:0;轮廓:无;框大小:边框框;}
.stage{宽度:240px;高度:360px;溢出:隐藏;}
.cube{
宽度:240px;
高度:400px;
利润上限:-20px;
-ms透视图:1000px;
-webkit透视图:1000px;
透视图:1000px;
-ms透视原点:中心;
-webkit透视图来源:中心;
透视原点:中心;
}
.容器{
显示:块;
宽度:240px;
高度:400px;
-ms变换样式:preserve-3d;
-webkit变换样式:保留-3d;
变换样式:保留-3d;
}
.第{
显示:块;
位置:绝对位置;
宽度:240px;
高度:400px;
背景位置:中心;
背景重复:无重复;
背景尺寸:封面;
}
.1{
-webkit转换:translateZ(120px);
变换:translateZ(120px);
背景颜色:绿色;
}
.2{
-webkit变换:translateX(120px)旋转(90度);
变换:translateX(120px)rotateY(90度);
背景色:红色;
}
.3{
-webkit转换:translateZ(-120px)比例(-1,1);
变换:translateZ(-120px)比例(-1,1);
背景色:青色;
}
.脸4{
-webkit变换:translateX(-120px)旋转(90度)比例(-1,1);
变换:translateX(-120px)旋转(90度)比例(-1,1);
背景色:黑色;
}
@-webkit关键帧旋转{100%{-webkit变换:旋转(-360deg);变换:旋转(-360deg);}
@关键帧旋转{100%{-webkit变换:旋转(-360度);变换:旋转(-360度);}
看看这里:
正如他们所说的透视图
,ie部分支持它:
IE中的部分支持是指不支持“变换样式:保留-3d”属性。这将防止嵌套三维变换的元素。
对于ie,您必须使用另一种方法
相关职位:
希望这有助于,因为其他社区成员已经建议,IE中不支持变换样式保留-3d 除了子元素的法线变换外,还可以通过手动将父元素的变换应用于每个子元素来解决此问题 参考:
Stackoverflow不是一个测验网站,请解释您试图解决问题的步骤,您是否检查了所有CSS规则是否与IE兼容?你想用什么版本的IE来实现这一点?提供实际细节,而不是随机填充文本。这就是发布内容的门槛。在IE-11中,添加了供应商前缀。我不知道必须补充什么细节。Block适用于所有浏览器,但不适用于IE。