WordPress Theme 介绍
三 8, 2010 | wordpress 主题 |
基本规则:
The right way to close:
<ul> <li>
</li>
</ul>
The wrong way to close:
<ul> <li>
</ul> </li>
- 规则 #1:以正确顺序关闭所有标签。
在错误关闭标签的方法中,关闭的 ul 标签是不按次序的。
每个标签都是在 < 和 > 中,是否有斜线 /,则指明这个标签是开始标签还是结束标签。如:<> 是开始标签,而</> 是结束标签。在上面的例子中,我使用 ul(无序列表)li (列表元素)标签。注意开始和结束 li 标签在开始和结束 ul 标签的里面,这就是标签的正确嵌套。
- 规则 #2:每个主题至少有这两个文件 – style.css 和 index.php。index.php 告诉你的主题所有的元素该如何布局,style.css 则告诉你主题所有的元素该如何展示。下面是完整的主题文件列表(现在不用担心这个列表):
- style.css
- index.php
- home.php
- single.php
- page.php
- archive.php
- category.php
- search.php
- 404.php
- comments.php
- comments-popup.php
- author.php
- date.php





留下您的脚印