更改datepicker插件中next和prev按钮的位置(Changing the position of next and prev buttons in datepicker plugin)

编程入门 行业动态 更新时间:2024-10-18 10:15:05
更改datepicker插件中next和prev按钮的位置(Changing the position of next and prev buttons in datepicker plugin)

我已经改变了下一个按钮的图像:

.ui-datepicker .ui-datepicker-next .ui-icon { background: url(next.png); width: 50px; height: 50px; }

如您所见,新图像尺寸为50x50,旧图像尺寸为16x16。 现在我不知道如何正确定位新图像,因为现在它看起来像这样 - jsfiddle 。

I've changed the image of next button with:

.ui-datepicker .ui-datepicker-next .ui-icon { background: url(next.png); width: 50px; height: 50px; }

As you see the new image size is 50x50, and the old one was 16x16. Now I don't know how to position the new image correctly, since right now it looks like this - jsfiddle.

最满意答案

您可以在自己的css文件中修改或覆盖: .ui-datepicker .ui-datepicker-prev span和.ui-datepicker .ui-datepicker-next span 。

这样的事情应该做的工作:

left: 0; margin-left: 0; top: 0; margin-top: 0;

You can modify or override in you own css file: .ui-datepicker .ui-datepicker-prev span and .ui-datepicker .ui-datepicker-next span.

something like this should do the job:

left: 0; margin-left: 0; top: 0; margin-top: 0;

更多推荐

本文发布于:2023-08-04 13:21:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1416040.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:插件   按钮   位置   prev   datepicker

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!