繁体   English   中英

jQuery步骤“下一个”和“上一个”按钮上的图标

[英]Icons on jquery-steps “Next” and “Previous” Buttons

我在一个项目上使用jquery步骤。 但是我找不到任何将图标添加到“上一个”或“下一个”按钮的方法。

我用以下代码修改了javascript:

                            labels: {
                            next: "»",
                            previous: "«"
                        }

但这不是我喜欢的。

这是插件的网址: http : //www.jquery-steps.com/

有人知道这样做的方法吗?

提前致谢!

您可以尝试使用jquery将html注入按钮。 尝试这个:

$('a[href="#next"]').html($('a[href="#next"]').html()+'»');

希望对您有所帮助。

labels: {
         next: '\u00bb',
         previous: '\u00ab'
}
labels: {
         next: String.fromCharCode(187),
         previous: String.fromCharCode(171)
}
labels: {
         next: '»',
         previous: '«'
}
//String.fromCharCode(187) » '\u00bb'
//String.fromCharCode(171) « '\u00ab'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM