【问题标题】:Change the position of jquery datepicker to the top将jquery datepicker的位置更改为顶部
【发布时间】:2021-09-29 17:45:20
【问题描述】:

我想将我的日期选择器的位置稍微调整到顶部。

This is my datepicker

这是我在jquery css 文件中的代码:

.ui-datepicker {
    width: 20em;
    padding: .2em .2em 0;
    display: none;
    margin-left: 32em;
    z-index: 10;
}

我只想将日期选择器稍微移到顶部,使其与 入住日期 文本对齐。我该怎么做?

【问题讨论】:

  • 能否请您粘贴您的 html 文件,或者用一些额外的内容进行解释。

标签: jquery css datepicker jquery-ui-datepicker


【解决方案1】:

我会尝试负边距

margin-top: -10px;

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-30
    • 2016-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多