使用CSS设置带边框的表单输入
要将边框设置为表单输入,请使用CSSborder属性。
您可以尝试运行以下代码来添加边框
示例
<!DOCTYPE html>
<html>
<head>
<style>
input[type = text] {
width: 100%;
padding: 10px 15px;
margin: 5px 0;
box-sizing: border-box;
border: 3px inset orange;
}
</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>热门推荐
8 入学校简短祝福语
10 英文写结婚祝福语简短
11 古风婚礼祝福语唯美简短
12 诗意新婚祝福语高级简短
13 升学祝福语简短的个性
14 庆祝国家的祝福语简短
15 祝朋友祝福语简短好看
16 14年祝福语简短情话
17 分手快乐祝福语简短
18 姥爷生日祝福语简短精辟