jQuery UI对话框调整大小关闭按钮

时间:2021-09-26 19:44:43

I'm creating some dialog boxes using jQUery UI, but, the "close" button is too small in mobile devices. I need to resize only the close button.

我正在使用jQUery UI创建一些对话框,但是,“关闭”按钮在移动设备中太小。我只需要调整关闭按钮的大小。

1 个解决方案

#1


1  

I found this simple solution, using CSS:

我发现这个简单的解决方案,使用CSS:

<style>
    .ui-dialog-titlebar-close { width: 30px !important; height: 24px !important; top: 40% !important }
</style>

This way affect all the dialog boxes, which is the desired effect.

这种方式会影响所有对话框,这是所需的效果。

#1


1  

I found this simple solution, using CSS:

我发现这个简单的解决方案,使用CSS:

<style>
    .ui-dialog-titlebar-close { width: 30px !important; height: 24px !important; top: 40% !important }
</style>

This way affect all the dialog boxes, which is the desired effect.

这种方式会影响所有对话框,这是所需的效果。