阅读背景:

将textAlign设置为textArea的居中,不使用尾随空格来确定居中

来源:互联网 

Maybe I'm doing something wrong but I have a textarea where I've specified textAlign = center and if I type in text with several trailing spaces, it doesn't count the spaces towards centering the text. If I add another character to the text (after all the spaces) it then all of a sudden centers the line, is this a bug, can anybody think of a good solution?Maybe I'm doing something wrong but I have a te




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: