站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:CSS的样式目录
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
==解决嵌套列表问题== If you are having trouble with your nested lists, the following might provide the solution. Also check [[WordPress:CSS Troubleshooting]] for more styling help issues. 如果你有有关嵌套列表方面的问题,下面可能会提供解决问题的方法。同时查看[[WordPress:CSS Troubleshooting|CSS发现并解决问题]]关于更多的帮助。 ===Improper Tag Structure=== ===不合适的标签结构=== The number one cause for errors or non-validation within a nested list is the lack of proper list structure. Here is a very simplified and correct nested list layout. Note that when a new list begins (nested), the <tt></li></tt> at the end of the last list item '''is not closed'''. It is left open until the new nested list is completed, and then closed. 产生错误的最大的问题或者嵌套列表中非确认部分,是由于缺乏合适的列表结构。这里有一个非常简单的而且正确的嵌套列表布局。注意一个新的列表开始(嵌套),最后一个item后的<tt></li></tt>'''没有关闭'''。只有新的嵌套列表形成了,这个<tt></li></tt>才会关闭。 <pre><ul> <li>Category One</li> <li>Category Two <----Note: No Closing List Tag <ul> <li>Sub-Category One</li> <li>Sub-Category Two <----Note: No Closing List Tag <ul> <li>Sub-Sub-Category One</li> <li>Sub-Sub-Category Two</li> <----Note: Closing List Tag </ul></li> <----Note: Nested List Closed <li>Sub-Category Three</li> </ul></li> <----Note: Nested List Closed <li>Category Three</li> </ul> <----Note: End of entire list</pre> <pre><ul> <li>Category One</li> <li>Category Two <----Note: No Closing List Tag <ul> <li>Sub-Category One</li> <li>Sub-Category Two <----Note: No Closing List Tag <ul> <li>Sub-Sub-Category One</li> <li>Sub-Sub-Category Two</li> <----Note: Closing List Tag </ul></li> <----Note: Nested List Closed <li>Sub-Category Three</li> </ul></li> <----Note: Nested List Closed <li>Category Three</li> </ul> <----Note: End of entire list</pre> ===Template Tag Lists=== ===模板标签列表=== Different [[WordPress:Template Tags]] used within lists have different ways of using and relying upon list tags. Some tags automatically include the <tt>UL</tt> and <tt>LI</tt> so all you have to do is include the tag in the list by itself and it will do all the work. Other tags require the <tt>UL</tt> to be in place followed by the template tag and it generates its own <tt>LI</tt> tags. Other template tags require designating which type of list tags are needed or use none at all if not listed in the tag's parameters. 这个列表内使用的不同的[[WordPress:Template Tags|模板标签]],拥有许多不同的方法,使用并且依赖列表标签。一些标签自动地包含<tt>UL</tt> 和<tt>LI</tt>,这样你只要使标签包含在列表中,标签就能够执行所有任务。其它的标签需要<tt>UL</tt>放在模板标签的后面,而产生自身的<tt>LI</tt>标签。其它的模板标签需要指定需要哪种类型的列表标签,或者如果没有列在标签参数中的话,就不使用任何标签。 If you are having trouble with your nested lists when using template tags like [[WordPress:Template Tags/wp_list_cats|wp_list_cats]] or [[WordPress:Template Tags/wp_list_pages|wp_list_pages]], check their paramaters to see how they use the list tags and compare it with your usage. 如果你使用模板标签像[[WordPress:Template Tags/wp_list_cats|wp_list_cats]] 或者 [[WordPress:Template Tags/wp_list_pages|wp_list_pages]]的时候,遇到了有关嵌套列表方面的问题,查看标签的参数,看看参数是怎样使用列表标签,并且将它们的用法与你自己的用法,相比较。 ===Parent/Child Relationships=== ===母/子关系=== Discussed in [[WordPress:CSS_Troubleshooting#The_CSS_Parent_and_Child_Relationship|The CSS Parent and Child Relationship]], lists are one of the big culprits. Styles in the child list items are influenced by its "parents". If the parent's list style features the color "red" and you want the children to be in "blue", then you need to specify the color in the children's list styles to be "blue" so they will override the parent's style 在[[WordPress:CSS_Troubleshooting#The_CSS_Parent_and_Child_Relationship| CSS 母子关系]]中讨论了,列表是最大的问题之一。子列表内容的样式受到"母"列表影响。如果母列表样式的颜色是"红色的",但是你希望子列表是"蓝色的",那么你需要在子列表样式中将颜色规定为"蓝色的",这样子列表样式就能够不顾母列表样式。 Nested lists within the WordPress Sidebar typically contain links. Therefore, while you can style the list as much as you want, the style for links will override the list style. You can control the way the links in the list work by giving them a specific style class of their own, including their hover attributes: WordPress工具条中的嵌套列表通过包含有链接。因此,虽然你可以尽可能地设计列表,链接的样式会超过样式表的样式。通过规定链接一个特定的样式class,你可以控制列表中的链接的显示方式,包含链接的悬停属性: <pre>#sidebar a {attributes} #sidebar a:hover {attributes} #categories a {attributes} #categories a:hover {attributes} #archives a {attributes} #archives a:hover {attributes}</pre> <pre>#sidebar a {属性} #sidebar a:hover {属性} #categories a {属性} #categories a:hover {属性} #archives a {属性} #archives a:hover {属性}</pre>
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)