sIFR 实施问题 - 需要帮助
我的 sifr 实施有 3 个主要问题。我花了两天时间尝试修复,但没有任何实际结果。
无法让导航列表在 Firefox 中工作。我已遵循所有建议的修复方法,包括在更高级别的元素上设置替换 - 仍然不起作用!这是我当前的代码:
sIFR.replace(路易斯安那州, { 选择器:'ul.tabs3 li' ,css: [ '.sIFR-root { 字体大小: 20px;}', 'a { 颜色: #cc3333;文本装饰:无;内边距:0px 8px;边距:0;}','a:链接{颜色:#555555; }', 'a:hover { 颜色: #cc3333; }'] ,厚度:50 ,wmode: '透明' });
它可以在 Safari 中运行,但点击每个导航链接就像是一种耐心的练习 - 加载速度非常慢。
无法将 jquery 选项卡中的内容获取到丢失。只有第一个选项卡有效。我已经阅读了关于在滚动 div 上使用类似下面的代码的建议修复 - 对我来说不起作用。
位置:绝对; 左:-10000px;
我还遇到了一个解决方案,它说要在我的选项卡代码中使用回调函数。我不知道该怎么做。这是我的选项卡代码:
$(function() {
$("ul.tabs3").tabs("div.panes3 > div",
{ history: true,
current: 'current',
// event:'mouseover',
effect: 'fade'
});
});
</script>
我无法让代码排除要替换的某些元素。在我的配置文件的顶部我有:
parseSelector.pseudoClasses = { 'not':函数(节点,选择器){ var 结果 = []; 每个:for(var i = 0,节点;i
替换代码是:
sIFR.replace(louisiana, {
selector: "h2, div:not(.filter) h2"
,css: '.sIFR-root { font-size: 30px; color: #444444; }'
,thickness: 70
,forceSingleLine: true
,wmode: 'transparent'
});
真的需要这方面的帮助 - 已经进行了 2 天,此时完全无能为力。
I have 3 main problems with my sifr implementation . Has taken me 2 days of trying to fix without any tangible results.
cant get navigation lists to work in firefox. I have followed all suggested fixes for this, including setting the replace on a higher level element - still doesnt work! here is my current code:
sIFR.replace(louisiana, {
selector: 'ul.tabs3 li'
,css: [ '.sIFR-root { font-size: 20px;}', 'a { color: #cc3333; text-decoration: none; padding:0px 8px; margin: 0;}', 'a:link { color: #555555; }', 'a:hover { color: #cc3333; }' ]
,thickness: 50
,wmode: 'transparent'
});
it works in safari, but clicking on each navigational link is like an exercise in patience - extremely slow to load.
cant get content in jquery tabs to losd. only first tab works. I have read the proposed fixes about using something like the code below on the scrolling div - doesnt work for me.
position: absolute;
left: -10000px;
i have also come across a solution which says to use a call back function with my tab code. I have no idea how to do that. here is my tab code:
$(function() {
$("ul.tabs3").tabs("div.panes3 > div",
{ history: true,
current: 'current',
// event:'mouseover',
effect: 'fade'
});
});
</script>
I cant get the code to exclude certain elements to be replaced to work. at the top of my config file I have:
parseSelector.pseudoClasses = {
'not': function(nodes, selector) {
var result = [];
each: for(var i = 0, node; i < nodes.length; i++) {
node = nodes[i];
var ignore = parseSelector(selector, node.parentNode);
for(var j = 0; j < ignore.length; j++) {
if(ignore[j] == node) continue each;
}
result.push(node);
}
return result;
}
}
and the replace code is :
sIFR.replace(louisiana, {
selector: "h2, div:not(.filter) h2"
,css: '.sIFR-root { font-size: 30px; color: #444444; }'
,thickness: 70
,forceSingleLine: true
,wmode: 'transparent'
});
I really need help with this - have been going for 2 days and totally clueless at this point.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您单击 sIFR 电影中的链接(不确定那里有什么),sIFR 不应导致任何速度减慢。选择器看起来不错,但您可能想尝试不使用透明度。
也不会立即知道如何修复选项卡问题。 sIFR 本质上很难与选项卡界面配合使用。它也不是真正为菜单设计的。
当您使用选择器
h2, div:not(.filter) h2
时,您将替换所有以及不在其中的内容
div.filter
。尝试删除h2,
位,看看是否有帮助。sIFR shouldn't cause any slowdowns if you click on a link inside a sIFR movie, not sure what's up there. The selector looks good, but you might want to try without the transparency.
Wouldn't immediately know how to fix the tab thing either. sIFR is, by nature, hard to make work with tab interfaces. It's not really designed for menus either.
When you use the selector
h2, div:not(.filter) h2
you're replacing all<h2>
s and those not indiv.filter
. Try removing theh2,
bit and see if that helps.