-->

Where did extra space come from in html of Struts

2019-08-06 12:04发布

问题:

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>

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

回答1:

In css add : br { display: none; }