Input type date appearance in Safari on iOS

后端 未结 4 432
感情败类
感情败类 2021-01-11 09:33

I\'m trying to use a regular input type date to use on mobile devices. But the width set in the CSS is overruled by Safari (or webkit).

I can add -webkit-appea

4条回答
  •  一个人的身影
    2021-01-11 10:32

    I have found that to get 100% width correct as per @Boldizsar answer you need a little CSS calc action to remove the width added by the dropdown arrow on iOS.

    -webkit-min-logical-width: calc(100% - 16px);
    

提交回复
热议问题