使用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>热门推荐
10 朋友结婚致辞祝福语简短
11 发给导师的祝福语简短
12 朋友明天手术祝福语简短
13 毕业祝福语保安文案简短
14 老板生日祝福语简短语
15 韩语贺卡祝福语简短版
16 二胎祝福语简短霸气
17 简短新婚铺被子祝福语
18 生日祝福语短句简短霸气