如何设置大小&jquery日期选择器日历图标触发图像的位置 [英] How to Set the size & position of jquery Date picker calendar icon trigger image
本文介绍了如何设置大小&jquery日期选择器日历图标触发图像的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 jquery 日期选择器文本框附近的日历图标触发图像默认情况下位于顶部我想将图像大小(高度)设置为与文本框高度相同请给我一些建议我的代码是
i am using jquery date picker the calendar icon trigger image near textbox is by default is on top i want to set the image size (height) same as textbox height please give me some suggestions my code is
$(#textbox1).datepicker({
showOn: "button",
buttonImage: "calendar_1.png",
buttonImageOnly: true
)};
推荐答案
用 firebug 检查元素,我得到了这个:
Inspecting the element with firebug, I got this:
<img class="ui-datepicker-trigger" src="http://xxxxx/officeprime/assets/img/calendar.gif" alt="..." title="..."/>
例如:button.ui-datepicker-trigger img
然后您可以使用该 CSS 类 ui-datepicker-trigger
.
You can then work with that CSS class ui-datepicker-trigger
.
这篇关于如何设置大小&jquery日期选择器日历图标触发图像的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文