【问题标题】:moz transition dont work but webkit yesmoz 过渡不起作用,但 webkit 是的
【发布时间】:2016-03-06 05:47:10
【问题描述】:

首先,对不起我的英语不好。这就是问题所在:我创建了一个粉丝制作的网络(仅用于练习 html5 和 css3),我尝试放置一些动画。他们在 safari、opera 和 chrome 上工作,但在 mozilla firefox 上没有。

css 代码是这样的:

section figure img {
	padding:4px;
	margin: auto 5px;
	background:white;
	border-radius:20px;
	-webkit-transition:-webkit-transform 0.3s ease-in-out 0.1s;
	-moz-transition:-moz-transform 0.3s ease-in-out 0.1s;
	box-shadow:white 5px 5px 10px;
}

它是动画之一,我想如果我能解决这个问题,我可以解决其他动画不工作的问题。

感谢您的支持。 :)

【问题讨论】:

    标签: html css firefox mozilla


    【解决方案1】:

    您只使用了两个带前缀的过渡属性,其余的都忘记了。
    试试这个:(and check the browser support of the property)

    section figure img {
        padding:4px;
        margin: auto 5px;
        background:white;
        border-radius:20px;
        -webkit-transition:-webkit-transform 0.3s ease-in-out 0.1s;
        transition:-webkit-transform 0.3s ease-in-out 0.1s;
        transition:transform 0.3s ease-in-out 0.1s;
        transition:transform 0.3s ease-in-out 0.1s, -webkit-transform 0.3s ease-in-out 0.1s;
        -webkit-box-shadow:white 5px 5px 10px;
                box-shadow:white 5px 5px 10px;
    }
    

    【讨论】:

      猜你喜欢
      • 2018-09-10
      • 1970-01-01
      • 2011-12-25
      • 2010-11-27
      • 2012-08-09
      • 1970-01-01
      • 2011-02-17
      相关资源
      最近更新 更多