当我在HTML中包含Doctype条目时,显示的字体变小,对齐扭曲。我包含doctype是为了避免一些css样式不能正确显示。
我使用的Doctype是,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
请给我一个建议,以避免字体大小改变和对齐。
有一种情况是,父DOM元素具有相当大的em-值。问题是,即使所有内联子元素的字体大小都要小得多,它们仍然有很大的空间:
资料来源():
<div style="font-size: 100px; border: 1px solid red;">
<span style="font-size: 0.1em;">How to get rid of the space above without changing the font-size or display properties?</span>
</di
<form style="background-color:pink; height:100px">
<label for="button-test">Add your name here</label>
<input type="text" id="button-test" name="button" placeholder="add your name here">
<div style="di