gpt4 book ai didi

javascript - Jquery UI 按钮问题

转载 作者:行者123 更新时间:2023-12-02 19:30:02 26 4
gpt4 key购买 nike

请看一下这个

http://jsfiddle.net/WAre9/4/

问题是,更改链接文本后,.button() 无法正常工作。

这是之前的截图:

enter image description here

鼠标点击后:

enter image description here

正如您所看到的,所有填充、字体样式都消失了。有什么建议吗?如何解决这个问题?

最佳答案

这是来自 How do I replace jQueryUI button text?

Maybe you could use the label option of the jQuery UI button now instead?

$("#mybutton").button().toggle(function() {
$(this).button('option', 'label', 'Stop');
}, function() {
$(this).button('option', 'label', 'Start');
});

jsbin preview here

关于javascript - Jquery UI 按钮问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11599721/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com