react-datepicker input width will not adjust to 100%

前端 未结 8 2036
谎友^
谎友^ 2021-02-14 00:16

I am attempting to adjust the width of the react-datepicker input box and surprisingly have found little information out there and am unable to effect its width. I would just l

8条回答
  •  青春惊慌失措
    2021-02-14 00:47

    //html file
      
    //css file .customDatePickerWidth, .customDatePickerWidth > div.react-datepicker-wrapper, .customDatePickerWidth > div > div.react-datepicker__input-container .customDatePickerWidth > div > div.react-datepicker__input-container input { width: 100%; height: 100%; } .react-datepicker__input-container { width: inherit; height: inherit; } .react-datepicker__input-container input { width: inherit; height: 100%; } .react-datepicker-wrapper { width: 100%; }

提交回复
热议问题