sIFR.replace(cochin, {
    selector: 'h1',
    tuneHeight:-5,
    wmode: 'transparent'
          , css: [
            '.sIFR-root { text-align: left; font-weight: bold; color: #959595; line-height: 1em; leading: -2}'
            , 'a { text-decoration: none;}'
            , 'a:link { color: #959595; }'
            , 'a:hover { color: #bbbaba; }'
          ]
          , filters: {
              DropShadow: {
                  distance: 1
              , color: '#2d2a26'
              , strength: 1
              }
          }

}); 

如果更换的元素是链接,如果 wmode: 'transparent' 设置然后我注意到以下错误: - 如果我滚动页面,请单击某个地方(不在SIFR链接上),然后通过sifr链接使用鼠标,我没有手(点)光标(默认显示一个)。如果我单击一个链接,则在鼠标重量光标更改为手之后,然后链接获得正常行为(鼠标悬停也有效)。如果我删除 wmode: 'transparent' 然后链接正常起作用。在Firefox中注意到这是正常工作的。

有人有类似的问题吗?

有帮助吗?

解决方案

这是Firefox的已知问题。我发现的唯一解决方法是添加此CSS规则:

.fontname:hover {background-position:0% 100%;}

在此示例中,Fontname是确定更换哪些标签的CSS类(在您的情况下,这是H1:悬停)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top