我有下面这段html下拉列表的代码,我试图将下拉列表中包含的vaues居中。我想‘align=’将不得不使用或中心“中心”,但无论我把它们放在哪里,它都不会居中。谁能指出标签会放在哪里?
<form id="form1" name="form1" method="post" align="center" action="section_search_results.php">
<p>Select The <b>Section</b> You Wish To
<select ng-model="grade.students" ng-options="st as st.name for st in students">
<option disabled selected value > -- Select a Student --</option>
</select>
我的代码中有一个选择下拉列表。这些选项是从RESTful数据库调用中填充的。当从DB检索结果时,显示在下拉列表中的值将设置为学生中的第一个值。
如何使禁用的值成为显示的值,直到用户实际单