尝试一下
form.form-example {
display: table;
}
div.form-example {
display: table-row;
}
label,
input {
display: table-cell;
margin-bottom: 10px;
}
label {
padding-right: 10px;
}
可以用 :valid 和 :invalid CSS 伪类来设置
技术概要
内容分类
流式内容、可感知内容
允许的内容
流式内容,但不能包含
尝试一下
form.form-example {
display: table;
}
div.form-example {
display: table-row;
}
label,
input {
display: table-cell;
margin-bottom: 10px;
}
label {
padding-right: 10px;
}
可以用 :valid 和 :invalid CSS 伪类来设置
技术概要
内容分类
流式内容、可感知内容
允许的内容
流式内容,但不能包含