label标签是行内元素,使用时需要加display:inline-block; 使用时和input标签一起使用 <label for="name"></label> <input id="name"></input>