gpt4 book ai didi

javascript - Jquery 对话框和堆叠按钮

转载 作者:太空宇宙 更新时间:2023-11-04 16:12:12 24 4
gpt4 key购买 nike

只是想知道是否有人知道如何让按钮堆叠在 Jquery 模态窗口中?它看起来像这样:

$confirm.dialog({
resizable: false,
modal: true,
height: 140,
closeOnEscape: true,
show: "blind",
buttons: [
{
text: "Button 1",
click: function() { $(this).dialog("close"); },
class:'ok_button'
},
{
text: "Button 2",
click: function() { $(this).dialog("close"); },
class:'ok_button'
},
{
text: "Button 3",
click: function() { $(this).dialog("close"); },
class:'ok_button'
}
],
create: function(event, ui){
console.log($(event.target).prev().remove());
console.log(ui);
}
});

这将按钮并排放置,有什么线索吗?感谢您的帮助!

最佳答案

使用显示: block :

.ok_button { display: block; }

http://jsfiddle.net/NMyHG/

关于javascript - Jquery 对话框和堆叠按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8187785/

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