【问题标题】:Chrome CSS transition + text shadow issueChrome CSS 过渡 + 文本阴影问题
【发布时间】:2013-10-07 08:19:31
【问题描述】:
a {
    transition: text-shadow, 0.5s, ease;
    display: block;
    padding: 20px 0px 20px 0px;
    color: #fff;
    text-shadow:  #343434 1px 1px 1px;
    text-decoration: none;
}

a:hover {
    color: #fff;
    text-shadow:
        #343434 1px 1px 1px,
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #fff,
        0 0 40px #ff00de,
        0 0 70px #ff00de,
        0 0 80px #ff00de,
        0 0 100px #ff00de,
        0 0 150px #ff00de;  
    text-decoration: none;
}

transition + text shadow 在 firefox 上完美运行,但在 chrome 上不可用,有人知道如何解决这个问题吗?

请先用firefox再用chrome打开以下链接,你会看到区别;

http://jsfiddle.net/tfKE8/

感谢您的帮助!

PS:我试过-webkit-transition,不行

【问题讨论】:

    标签: css google-chrome webkit transition


    【解决方案1】:

    语法可能有错误,请尝试不使用逗号:

    transition: text-shadow 0.5s ease;
    

    这在 Chrome 30.0.1599.69 中提供了平滑过渡。

    【讨论】:

      猜你喜欢
      • 2014-04-22
      • 1970-01-01
      • 2011-10-16
      • 2011-04-27
      • 2012-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多