自定义标签<INPUT type = "text">什么样的写法可以让入力框中的值居右显示

<style type="text/css">
input{text-align:right;}
</style>
<form>
<input type="text" />
<form>
这样为input标签添加一个简单的css样式就可以了。
使用text-align:left/center/right; 其中之一就可以调整文本的位置。

posted @ 2015-02-10 11:21  carrot__lsp  阅读(735)  评论(0编辑  收藏  举报