没设置之前
设置之后:
代码如下:
<style>
div{
width: 500px;
}
label {
display: block; /* 设置 label 元素为块级元素 */
text-align: right; /* 设置文本右对齐 */
margin-bottom: 10px; /* 设置标签之间的间距 */
}
</style>
</head>
<body>
<div>
<label>商品货号: <input type="text" name="" id=""></label>
<label>标 签:<input type="text" name="" id=""></label>
<label>排 序: <input type="text" name="" id=""></label>
<label>审核状态: <input type="text" name="" id=""></label>
</div>
</body>