开发者

Empty Div Causing Very Strange Behavior

Got something like this

<div class="something"&开发者_运维知识库gt;

<div></div>

<p>
Some text here
</p>

</div>

This is all called in a template in XSL.

For some reason I am getting when it's rendered that the empty div is never closed. The <p> and its contents are inside this div. This continues on and on for each time this template is called. :( If I only take out the empty div, all the "something" divs are separate entities and not inside each other.

How could this be happening?!


Try putting an

&nbsp;

inside the empty div.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜