CSS Max-Width in IE8

后端 未结 2 1176
萌比男神i
萌比男神i 2021-02-13 05:28

For my input, which can either have classname=\"half\" or \"half.not-placeholder-value\", Firebug shows both inputs to have a set, fixed width of

2条回答
  •  说谎
    说谎 (楼主)
    2021-02-13 05:58

    This is not really an IE8 issue since IE8 does support the max-width attribute but only when given a defined width first.

    input.half, input.half.not-placeholder-value {
        width: 100%;
        max-width: 25em;
    }
    

提交回复
热议问题