使用CSS在表单的文本字段内添加空间
要在表单的文本字段内添加空间,请使用CSSpadding属性。
您可以尝试运行以下代码来实现此目的:
示例
<!DOCTYPE html>
<html>
<head>
<style>
input[type = text] {
width: 100%;
padding: 10px 15px;
margin: 5px 0;
box-sizing: border-box;
}
</style>
</head>
<body>
<p>Fill the below form,</p>
<form>
<label for = "subject">Subject</label>
<input type = "text" id = "subject" name = "sub">
<label for = "student">Student</label>
<input type = "text" id = "student" name = "stu">
</form>
</body>
</html>热门推荐
5 破五祝福语简短的
10 牛年公司新年祝福语简短
11 新房上梁简短祝福语大全
12 新年简短祝福语给亲人
13 感谢教官文案祝福语简短
14 天仙配简短祝福语
15 中秋祝福语简短带署名
16 给表妹生日祝福语简短
17 新年祝福语简短又好听
18 婚礼伴娘祝福语大全简短