重试:我不能使用textarea的样式关于&text;对齐:中心'

时间:2016-07-20 08:59:00

标签: java html jsp

如何对齐中心的文字?

在下图中,很明显它没有正确对齐多行文字。

如何解决这个问题?

enter image description here

我的代码:

<style>
    textarea.f9p3{

    border:0px solid #DDDAD5;
    word-break:break-all;
    height:100%;
    font-size:9pt;
    padding:3px;
    overflow:visible;
    overflow-x:hidden;
    text-overflow:ellipsis
    }
</style>  


<textarea 
class="f9p3" 
name="mon_a" 
id="mon_a_<%=y%>" 
style="text-align:center;width:126px;" ><%=mon_a%></textarea>

0 个答案:

没有答案
相关问题