Struts 应用的 html 中的额外空间从何而来? [英] Where did extra space come from in html of Struts app?

查看:38
本文介绍了Struts 应用的 html 中的额外空间从何而来?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调试一个 Struts Java 应用程序,在我的 defaultLayout.tag 文件中有 2 个表,它们之间没有空格,但是在我从 Firefox 的源代码检查器看到的结果 html 中,有两行:

I'm debugging a Struts Java app, in my defaultLayout.tag file there are 2 tables, there is no space between them, but in the result html which I saw from Firefox's source code Inspector, there are 2 lines of:

<Br></Br>
<Br></Br>

我想知道它在 Struts 应用程序中的哪个位置生成了那 2 行额外的中断.

I wonder where in the Struts app did it generate those 2 extra line of breaks.

推荐答案

在 css 中添加 : br { display: none;}

In css add : br { display: none; }

这篇关于Struts 应用的 html 中的额外空间从何而来?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆