站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Styling Page-Links
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
=更改网页链接的外观= By default, the page-links are in an HTML paragraph tag. Add a [[WordPress:CSS]] class to the DIV section surrounding the paragraph tag and you have even more control over the look of the page-link tag. 默认情况下,网页链接是在HTML段落标签中。向包围段落标签的DIV部分添加[[WordPress:CSS|CSS]] class,你更能够控制网页链接标签的外观。 The following use of the tag adds a DIV tag before and after the page-links, shows the word "Page" next to each page number, and when you are in the middle of the page order you will see the page number instead of the word "next", and lists the pages as shown below. 使用下面的标签在网页链接的前后分别添加一个DIV标签,在每个网页页面旁边显示单词"网页",而且当你在很多网页的中间次序的时候,你会使用网页页码,而不是单词"下一个",而且如下所示,列出网页。 <pre><div class="pagelink"><?php wp_link_pages('pagelink=Page %'); ?></div></pre> <pre><div class="pagelink"><?php wp_link_pages('pagelink=Page %'); ?></div></pre> Let's give our style class "pagelink" a green color and italics: 让我们将样式类别"pagelink"设置为绿色斜体: <div style="border:1px solid blue; width:50%; margin: 20px; padding:20px; color: green; font-style: italic; padding:20px">Page 1 Page 2 Page 3</div> <div style="border:1px solid blue; width:50%; margin: 20px; padding:20px; color: green; font-style: italic; padding:20px">Page 1 Page 2 Page 3</div> Want to have more fun? Let's design these so they do more than just tell the reader "page 1". 想要更有趣?我们设计这些,这样就不止会通知用户"网页 1" <pre><?php link_pages('To read this story, ', '. ', 'next', ' or you can read on to the next page', 'you can go back to the previous page'); ?> </pre> <pre><?php link_pages('阅读这个故事, ', '. ', 'next', '或者你可以继续阅读下一个网页', '你可以返回到上一页'); ?> </pre> If you were on page three of four pages, it might look like this: 如果你在四个网页中的第三页上,可能看起来像: <div style="border:1px solid blue; width:50%; padding:10px">To read this story, [[WordPress:#Changing the Look of Page-Links|you can go back to the previous page]] [[WordPress:#Changing the Look of Page-Links|or you can read on to the next page]].</div> <div style="border:1px solid blue; width:50%; padding:10px">阅读这个故事,[[WordPress:#Changing the Look of Page-Links|你可以返回到上一页]] [[WordPress:#Changing the Look of Page-Links|或者你可以继续阅读下一页]]。</div> Using the <tt>link_pages()</tt> you can add a [[WordPress:Fun_Character_Entities|extended character or character entity]] to replace the '''next''' and '''previous''' for an interesting look. Let's add the double right arrow » and double left arrow«. 使用<tt>link_pages()</tt>,你可以添加[[WordPress:Fun_Character_Entities|扩展的字符或者字符实体]],来替换'''下一个''' 和 '''上一个''',产生有趣的外观。让我们添加两个右箭头»和两个左箭头«。 <pre><?php link_pages('<p>Pages: ', '</p>', 'next', ' &raquo;', '&laquo; '); ?></pre> <pre><?php link_pages('<p>Pages: ', '</p>', 'next', ' &raquo;', '&laquo; '); ?></pre> And it might look like: 可能看起来像: <div style="border:1px solid blue; width:50%; margin: 20px; padding:20px; padding:20px">Pages: <span style="color:blue">« »</span></div> <div style="border:1px solid blue; width:50%; margin: 20px; padding:20px; padding:20px">Pages: <span style="color:blue">« »</span></div> :'''Note:''' ''You can only use [[WordPress:Fun_Character_Entities|extended characters or HTML character entities]] with <tt>link_pages()</tt> because the ampersand required to create the entity is seen by <tt>wp_link_pages()</tt> as the boolean "and" and the tag will not work. Try using the direct character instead of an entity.'' :'''注:''' ''你只可以将[[WordPress:Fun_Character_Entities|扩展的字符或者HTML字符实体]] 和 <tt>link_pages()</tt> 一起使用,因为需要的&符号创建的实体, <tt>wp_link_pages()</tt> 看做是boolean "和" 而且标签也不能够运行。试着使用直接的字符而不是实体。 '' These are just a few samples and you can use your imagination to create a wide range of different styles and looks for your page links on your site or theme. 有一些样本,你只要发挥你的想象力,为站点或者主题上的网页创建不同的样式和外观。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)