【发布时间】:2018-07-06 16:39:21
【问题描述】:
This is a picture of how large the calendar is coming out
我已经在检查模式下对 CSS 进行了检查,以找到一个可以调整它但不成功的类或 ID,但在尝试了每种尺寸后,没有任何东西调整过尺寸,有趣的是数字按钮日期根本没有调整我是能够使框达到文本框的大小,但不能使圆形按钮完全改变其大小。如果有人对此有解决方案,请提供帮助。
@Html.EditorFor(model => model.pickupDate, new { htmlAttributes = new { @class = "datepicker", @placeholder = "Select Date..." } })
@Html.EditorFor(model => model.dropoffDate, new { htmlAttributes = new { @class = "datepicker2", @placeholder = "Select Date..." } })
<script>
$(function () {
$(".datepicker2").datepicker({
changeMonth: true,
changeYear: true,
// showOn: "both",
// buttonImage: "/images/cal.png",
//buttonImageOnly: true
});
$(".datepicker").datepicker({
changeMonth: true,
changeYear: true,
// showOn: "both",
// buttonImage: "/images/cal.png",
// buttonImageOnly: true
});
});
【问题讨论】:
-
可以分享代码吗?
-
您需要在问题中发布minimal reproducible example。我们不调试图像。
-
@BS我还是分享了代码
标签: javascript jquery html model-view-controller jquery-ui-datepicker