0

在 SSI 文件中包含 DIV 容器元素是一种好习惯,还是应该只将标签放在 DIV 容器中。例如,在下面的代码中,我有一个出现在所有页面下的页脚。我应该只将<p>and<a>元素放在 SSI 文件或<div>元素中吗?

<div id="footer">
 <div class="container">
  <div class="wrapper">
   <div id="footer_content">
     <p>Copyright 2010 New Life e. V.<br />
         <a href="en/contact.htm">Contact</a> |
         <a href="en/map.htm">Find Us</a>   |
         <a href="en/impressum.htm">Impressum</a></p>
   </div>
  </div>
 </div>
</div>
4

1 回答 1

0

将整个页脚 DIV 放在包含文件中会更好。否则,不需要页脚的页面也必须携带不必要的外部 DIV。

于 2013-03-23T08:36:48.537 回答