HTML input textbox with a width of 100% overflows table cells

前端 未结 14 1527
别那么骄傲
别那么骄傲 2021-01-29 20:28

Does anyone know why the input elements with a width of 100% go over the table\'s cells border.

In the simple example below input box go over the table\'s cells border,

14条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-29 21:00

    Take out the "http://www.w3.org/TR/html4/loose.dtd" from the DOCTYPE declaration and it fix your problem.

    Cheers! :)

提交回复
热议问题