Fieldset does not support display: table / table-cell

前端 未结 3 518
萌比男神i
萌比男神i 2020-12-06 17:50

I\'m trying to use display: table with fieldset, but it\'s not scaling properly. The same thing works if I change

to
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 18:05

    Basically, the default rendering of fieldset can't actually be expressed in CSS. As a result, browsers have to implement it in non-CSS terms, and that interferes with application of CSS to the element.

    Pretty much any element that can't be recreated using pure CSS will have issues of that sort.

提交回复
热议问题