Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
css 3D过渡图像_Css_3d_Background Image - Fatal编程技术网

css 3D过渡图像

css 3D过渡图像,css,3d,background-image,Css,3d,Background Image,我正在尝试创建一个双面3D链接,我有翻转工作,有一面红色和一面蓝色,但我想把图像放在任何一边,而不仅仅是颜色。当在我的css中使用“背景图像”值时,没有图像出现,请有人帮忙 这是我的密码: .flip3D > .front{ position:absolute; -webkit-transform: perspective( 600px ) rotateY( 0deg ); background:#e51c1c; width:246.5px; height:164p

我正在尝试创建一个双面3D链接,我有翻转工作,有一面红色和一面蓝色,但我想把图像放在任何一边,而不仅仅是颜色。当在我的css中使用“背景图像”值时,没有图像出现,请有人帮忙

这是我的密码:

   .flip3D > .front{
   position:absolute;
   -webkit-transform: perspective( 600px ) rotateY( 0deg );
   background:#e51c1c; width:246.5px; height:164px; border-radius: 0px;
   backface-visibility: hidden;
   transition: transform .5s linear 0s;
 }  

   .flip3D > .back{
   position:absolute;
   -webkit-transform: perspective( 600px ) rotateY( 180deg );
   background:#428bca; width:246.5px; height:164px; border-radius: 0px;
   backface-visibility: hidden;
   transition: transform .5s linear 0s;
 }

如果你把一个图像应用到一个背景上,它似乎工作得很好

 .flip3D > .front{
   position:absolute;
   -webkit-transform: perspective( 600px ) rotateY( 0deg );
   background: url(...) no-repeat; width:246.5px; height:164px; border-radius: 0px;
   backface-visibility: hidden;
   transition: transform .5s linear 0s;
 }  

 .flip3D > .back{
   position:absolute;
   -webkit-transform: perspective( 600px ) rotateY( 180deg );
   background: url(...) no-repeat; width:246.5px; height:164px; border-radius: 0px;
   backface-visibility: hidden;
   transition: transform .5s linear 0s;
 }

例如:

请提供不起作用的JSFIDLE,我想这就是它!,谢谢。