php 文本区域多余空间
我有一个简单的文本区域框,刷新时在框中包含 php:
<textarea><?php //php in here ?></textarea>
目前,php 很长,当它回显值时,框之间应该有很多空白。我认为这是因为大量的 php (未显示)。有没有办法使用trim()或css属性将文本左对齐?
I have a simple text area box with php in the box on refresh:
<textarea><?php //php in here ?></textarea>
At the moment, the php is very long and when it does echo out the value the box should be there is a lot of white space in between. i think this is because of the large amount of php (not shown). is there a way to use the trim() or a css attribute that aligns the text to the left?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编译器会提取两个 PHP 之间的任何内容,然后将 PHP 的结果插入到该点。不会输出新行或标签内的任何内容。您还可以在标签内使用换行符。
例子:
Anything between two PHP is extracted by the compiler and the result of the PHP is inserted at that point. No new lines or anything within the tags is outputted. You are also allowed to use new lines within the tags.
Example: