<form><label for="username">用户名:</label> <input type="text" name="username" id="username" value="" /> <label for="pass">密码:</label> <input type="password" name="pass" id="pass" value="" /> <input type="submit" value="确定" name="submit" /> <input type="reset" value="重置" name="reset" /></form> 如何设置用户名靠右显示,没什么意义,就是想知道怎么弄,有没有大佬知道
<form align="center">
<label for="username">表格</label><br/>
<input type="text" name="username" id="username" value="" />用户名 <br/>
<input type="password" name="pass" id="pass" value="" /> 密码 <br/>
<input type="submit" value="确定" name="submit" />
<input type="reset" value="重置" name="reset" />
</formla>
或许这样?
<form> <div style="text-align:right"> <label for="username">用户名:</label> <input type="text" name="username" id="username" value="" /> </div> <label for="pass">密码:</label> <input type="password" name="pass" id="pass" value="" /> <input type="submit" value="确定" name="submit" /> <input type="reset" value="重置" name="reset" /></form> </form>