
[英]How can I move the close button to the top-right corner of the box in slimbox (jQuery)
[英]How to move the jQueryUI close button on the dialog over the top of top right corner?
我正在使用jQueryUI,并具有模式对话框设置。 设计器希望关闭按钮看起来像这样:
我目前有这样设置:
该图标不太正确,请忽略它,但是我确实想将其向上移到该右上角。 我以为可以用以下CSS完成它:
.ui-dialog .ui-dialog-titlebar-close {
border-radius: 17px;
height: 33px;
margin: -10px 0 0;
padding: 1px;
position: absolute;
right: -18px;
top: -24%;
width: 33px;
z-index: 9999;
}
但是现在看起来像这样:
如何在对话框顶部显示它? 我已经有一个大的z索引,它不起作用。
谢谢。
将类ui-dialog css属性溢出设置为可见。 希望能有所帮助。
尝试给定border-radius
和height
值的不同值。 这可能是边界半径值仅是高度一半的原因。 因此更改height
值。
例如
.ui-dialog .ui-dialog-titlebar-close {
border-radius: 17px;
height: 50px; /*change from 33 to 50px*/
margin: -10px 0 0;
padding: 1px;
position: absolute;
right: -18px;
top: -24%;
width: 33px;
z-index: 9999;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.