How to control positioning of jQueryUI datepicker

前端 未结 13 1320
一整个雨季
一整个雨季 2020-12-07 16:55

The datepicker in jQueryUI renders with a dynamic position. It renders according to its css if there\'s enough room for it, but if there isn\'t enough window space it tries

13条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 17:26

    In your css file, for example:

    #ui-datepicker-div {
      position: absolute !important;
      top: auto !important;
      left: auto !important;
    }
    

    Your important settings, whatever they are, will override the inline defaults.

提交回复
热议问题