我是 php 新手,并为我所问的微不足道的问题道歉。我似乎无法让我的标签居中对齐。从附件中可以看出,只有文本框居中。请你能指出我正确的方向吗?
这是代码。如您所见,我在表格的开头和结尾使用中心。
echo" <center> <fieldset>
<div class=\"form-horizontal\">
<h7 class=\"label\"><font color=\"#FF0000\" size=\"+1\"><strong>* </strong></font>: Required Fields</h7> <br><br>
<div class=\"form-row\">
<div class=\"form-label\">First Name <font color=\"#FF0000\" size=\"+1\">*</font><em></em></div>
<div class=\"form-controls\">
<input id=\"First Name\" type=\"text\" name=\"FirstName\" value=\"$firstname\">
</div>
</div>
<div class=\"form-row\">
<div class=\"form-label\">Last Name <font color=\"#FF0000\" size=\"+1\">*</font></div>
<div class=\"form-controls\">
<input id=\"Last Name\" type=\"text\" name=\"LastName\" value=\"$LastName\">
</div>
</div>
<div class=\"form-row\">
<div class=\"form-label\">ID Number <font color=\"#FF0000\" size=\"+1\">*</font></div>
<div class=\"form-controls\">
<input name=\"IDNumber\" type=\"text\" id=\"ID Number\" value=\"$IdentityNumber\" maxlength=\"13\">
</div>
</div>
<div class=\"form-row\">
<div class=\"form-label\">Email Address</em></div>
<div class=\"form-controls\">
<input id=\"Email Address\" type=\"text\" name=\"EmailAddress\" value=\"$ParentEmailAddress\">
</div>
</div>
<div class=\"form-row\">
<div class=\"form-label\">Mobile Number <font color=\"#FF0000\" size=\"+1\">*</font></div>
<div class=\"form-controls\">
<input name=\"MobileNumber\" type=\"text\" id=\"Mobile Number\" value=\"$ParentMobileNo\" maxlength=\"10\">
</div>
</div>
<div class=\"form-row\">
<div class=\"form-label\">Date of Registration <font color=\"#FF0000\" size=\"+1\">*</font></div>
<div class=\"form-controls\">
<input id=\"Date of Registration\" type=\"text\" name=\"DateofRegistration\" value=\"$DateOfRegistration\">
</div>
</div>
<div class=\"form-row\">
<div class=\"form-label\">Learners Full Name <font color=\"#FF0000\" size=\"+1\">*</font></div>
<div class=\"form-controls\">
<input id=\"Learners Full Name\" type=\"text\" name=\"LearnersFullName\" value=\"$LearnerFullName\">
</div>
</div>
<div class=\"form-row\">
<div class=\"form-label\">Learners Date of Birth <font color=\"#FF0000\" size=\"+1\">*</font></div>
<div class=\"form-controls\">
<input id=\"Learners Date of Birth\" type=\"date\" name=\"LearnersDateofBirth\" value=\"$LearnerDOB\">
</div>
</div>
<div class=\"form-row\">
<div class=\"form-label\">School Nominated <font color=\"#FF0000\" size=\"+1\">*</font></div>
<div class=\"form-controls\">
<select id=\"School Nominated\" type=\"text\" name=\"SchoolNominated\">
</center>";
我尝试添加一张图片来向您展示表格。请到此链接查看(http://i.stack.imgur.com/lIAFG.png)