0

我正在寻找一种方法来删除 Firefox 适用于我的页面的大纲焦点: http ://www.bevelite.com.au/test

我读过应用以下内容将解决此问题,但似乎无法将其应用于我的代码:

sIFR.replace(movie, {fixFocus: true});

我的代码:

sIFR.replace(univers47cl, {
selector: 'h1.test',
wmode: 'transparent',
css: [
    '.sIFR-root { font-size: 20px; font-weight: 100; color: #000000; text-transform: uppercase; line-height: 20px; margin: 0 0 15px 0; padding: 0; }',
    'a { text-decoration: none; }',
    'a:link { color: #000000; text-decoration: none; }',
    'a:hover { color: #000000; text-decoration: underline; }',
]
});

sIFR.replace(univers47cl, {
selector: 'h1',
wmode: 'transparent',
css: [
    '.sIFR-root { font-size: 20px; font-weight: 100; color: #00b9f2; text-transform: uppercase; line-height: 20px; margin: 0 0 15px 0; padding: 0; }',
    'a { text-decoration: none; }',
    'a:link { color: #00b9f2; text-decoration: none; }',
    'a:hover { color: #00b9f2; text-decoration: underline; }',
]
});

任何人都可以看到我可以将其应用于我的代码吗?

(此处的 sIRF 文档 > http://wiki.novemberborn.net/sifr3/

4

4 回答 4

0

如果您指的是活动链接上的虚线轮廓,可以像这样删除它:

a {
   outline:0;
}
于 2009-03-27T05:27:43.580 回答
0

Mathew Taylor 上面的答案可能更准确,但您的问题是将该代码段放入何处。另外,请注意在您的代码段中,您的数组“css:[]”中有一个额外的尾随逗号,您应该注意这些,因为它们会让你进入 IE

sIFR.replace(univers47cl, {
    selector: 'h1.test',
    wmode: 'transparent',
    fixFocus: true,
    css: [
            '.sIFR-root { font-size: 20px; font-weight: 100; color: #000000; text-transform: uppercase; line-height: 20px; margin: 0 0 15px 0; padding: 0; }',
            'a { text-decoration: none; }',
            'a:link { color: #000000; text-decoration: none; }',
            'a:hover { color: #000000; text-decoration: underline; }'
    ]
    });

sIFR.replace(univers47cl, {
    selector: 'h1',
    wmode: 'transparent',
    fixFocus: true,
    css: [
            '.sIFR-root { font-size: 20px; font-weight: 100; color: #00b9f2; text-transform: uppercase; line-height: 20px; margin: 0 0 15px 0; padding: 0; }',
            'a { text-decoration: none; }',
            'a:link { color: #00b9f2; text-decoration: none; }',
            'a:hover { color: #00b9f2; text-decoration: underline; }'
    ]
    });
于 2009-03-27T06:41:43.903 回答
0

fixFocus选项与实际关注 Flash 电影有关。我相信您应该添加object { outline: 0; }以摆脱 Firefox 出于某种原因开始显示的焦点边框。

于 2009-03-27T20:56:40.633 回答
0

在 Firefox 3.5 中唯一对我有用的东西:

.sIFR-flash:focus{outline: none;}

其他浏览器(我测试了最新的 Opera、Chromium、IE)似乎没有这个问题。它与链接元素无关,但与 Flash 对象有关。

于 2009-07-01T22:33:20.740 回答