Home  >  Article  >  Backend Development  >  php smarty问题,使用了include引用一个html,但是引用进来的内容多加了一行空文本?

php smarty问题,使用了include引用一个html,但是引用进来的内容多加了一行空文本?

WBOY
WBOYOriginal
2016-06-06 20:39:23913browse

<code>//引用处

</code>
<code>//被引用文件内容
<div id="pageTop">
        <div class="back">
            <a href="javascript:history.back(-1);">
                <img  src="themes/images/back_03.png" alt="php smarty问题,使用了include引用一个html,但是引用进来的内容多加了一行空文本?" >
            </a>
        </div>
       <p class="pageTitle"></p>
       <div class="reloadBtn" onclick="location.reload()"></div>
</div>
<div class="pageTopHeight"></div>
</code>

结果:
php smarty问题,使用了include引用一个html,但是引用进来的内容多加了一行空文本?

这里为什么多了一行空文本呀?使得我页面中的内容都下移了很多

回复内容:

<code>//引用处

</code>
<code>//被引用文件内容
<div id="pageTop">
        <div class="back">
            <a href="javascript:history.back(-1);">
                <img  src="themes/images/back_03.png" alt="php smarty问题,使用了include引用一个html,但是引用进来的内容多加了一行空文本?" >
            </a>
        </div>
       <p class="pageTitle"></p>
       <div class="reloadBtn" onclick="location.reload()"></div>
</div>
<div class="pageTopHeight"></div>
</code>

结果:
php smarty问题,使用了include引用一个html,但是引用进来的内容多加了一行空文本?

这里为什么多了一行空文本呀?使得我页面中的内容都下移了很多

引进文件的编码最好和模板的一样
引进文件的文件是不是用记事本编辑过了,用其他编辑器编辑一下

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn