對於我來說,我不能將這些標籤作爲樣式來設計css中的某些元素甚至不工作。任何幫助/解釋讚賞爲什麼不會使用這種形式的標籤樣式
<div id="calcbox">
<form name="form1" class="contact_form">
<ul>
<li>
<label>Item Cost</label>
<input type="text" id="itemCost" placeholder="$ 0.00" />
</li>
<li>
<input type="button" class="calculatebutton" value="Cash Payment" />
</li>
<li>
<input type="button" class="calculatebutton" value="Card Payment" />
</li>
<li>
<label style="width:100px;">Purchase Cost</label>
<input type="text" id="total" placeholder="$ 0.00" readonly style="clear:both" />
</li>
</ul>
</form>
</div>
什麼CSS顯示行爲?你還沒有發佈任何內容。 – jmoerdyk
@jmoerdyk我猜OP意味着「標籤」的內聯樣式 – karthikr
你是在談論「寬度」?標籤是'inline'元素,而不是'block'。設置任意寬度將不起作用,它將適合其內容。 –