對於下面的代碼,我希望在「折扣」和$ 500之間添加間距。 I 不要想要添加額外的分標籤。這是sample on jsbin。在兩個跨度之間添加間距
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Spacing Test</title>
<style type="text/css">
.labelReadOnlyTB {
font-size: 16px;
font-family: Arial;
padding: 1px;
}
.labelForTextbox
{
font-weight: bold;
font-size: 12px;
color: #000000;
font-family: Arial;
padding:8px 0px;
margin-bottom:5px;
}
</style>
</head>
<body>
<table>
<tr>
<td style="min-height:45px;vertical-align:top;">
<span id="lblDiscount" class="labelForTextbox">Discount</span>
<br />
<span id="lblValue" class="labelReadOnlyTB">$500</span>
</td>
</tr>
</table>
</body>
</html>
添加填充,以一個或兩個空間他們甚至相隔。 –
我希望他們分開行,所以我有
。現在我想增加一些間距,但不想再添加
。 – gbs
當然,我在這種情況下增加了保證金。根據您的需要,該值可以是任何您想要的值。 – kunalbhat