我有以下一段代碼用於在html中下拉菜單,並且我嘗試將下拉列表中的vaues居中。我想'中心'將不得不使用或對齊=「中心」,但無論我把它放在哪裏,它不會居中。任何人都可以指出標籤的位置?在下拉列表中將值居中
<form id="form1" name="form1" method="post" align="center" action="section_search_results.php">
<p>Select The <b>Section</b> You Wish To Search Below... </p>
<p><center>
<label for="section"></label>
<label for="section2"></label>
<select name="section" id="section2">
<option value="Functional">Functional</option>
<option value="Technical">Technical</option>
<option value="Commercial">Commercial</option>
<option value="Implementation">Implementation</option>
<option value="Innovation">Innovation</option></center>
</select>
由於
在左對齊的列中查找文本居中列的內容要困難得多。請不要這樣做。 – Quentin