小编Fre*_*ost的帖子

右对齐输入字段中的数字

使用此示例,如何在输入字段中右对齐数字?

<html>
<body>

<form name="input" action="html_form_action.asp" method="get">
Taxes: <input type="number" name="Taxes" value="" /><br />
Shipping: <input type="number" name="shipping" value="" align="right" /><br />
<input type="submit" value="Submit" />
</form> 

<p>Click the "Submit" button, the form-data will be sent to a page called "html_form_action.asp".</p>

</body>
</html>
Run Code Online (Sandbox Code Playgroud)

html

14
推荐指数
1
解决办法
1万
查看次数

标签 统计

html ×1