wordpress实现读者墙的方法


当前第2页 返回上一页

3.在主题目录中style.css添加以下样式:

代码如下:
.readers-list{line-height:18px;text-align:left;overflow:hidden;_zoom:1}
.readers-list li{width:200px;float:left;*margin-right:-1px}
.readers-list a,.readers-list a:hover strong{background-color:#f2f2f2;background-image:-webkit-linear-gradient(#f8f8f8,#f2f2f2);background-image:-moz-linear-gradient(#f8f8f8,#f2f2f2);background-image:linear-gradient(#f8f8f8,#f2f2f2)}
.readers-list a{position:relative;display:block;height:36px;margin:4px;padding:4px 4px 4px 44px;color:#999;overflow:hidden;border:#ccc 1px solid;border-radius:2px;box-shadow:#eee 0 0 2px}
.readers-list img,.readers-list em,.readers-list strong{-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out}
.readers-list img{width:36px;height:36px;float:left;margin:0 8px 0 -40px;border-radius:2px}
.readers-list em{color:#666;font-style:normal;margin-right:10px}
.readers-list strong{color:#ddd;width:40px;text-align:right;position:absolute;right:6px;top:4px;font:bold 14px/16px microsoft yahei}
.readers-list a:hover{border-color:#bbb;box-shadow:#ccc 0 0 2px;background-color:#fff;background-image:none}
.readers-list a:hover img{opacity:.6;margin-left:0}
.readers-list a:hover em{color:#EE8B17;font:bold 12px/36px microsoft yahei}
.readers-list a:hover strong{color:#EE8B17;right:150px;top:0;text-align:center;border-right:#ccc 1px solid;height:44px;line-height:40px}
提示:你可以先修改部分代码再运行.

希望本文所述对大家的WordPress建站有所帮助。


标签:WordPress

返回前面的内容

相关阅读 >>

wordpress实现网站投稿者也可以上传图片的方法

wordpress分页伪静态加html后缀

wordpress查询某年某月文章的sql语句

wordpress免插件实现面包屑导航的示例代码

wordpress后台中实现图片上传功能的实例讲解

复现wordpressxmlrpc.php漏洞和ssrf的详细步骤

wordpress中注册菜单与调用菜单的方法详解

wordpress首页不显示指定分类文章的方法

wordpress主题制作中自定义头部的相关php函数解析

使用 conditional menus 插件让 wordpress 在不同页面显示不同菜单

更多相关阅读请进入《wordpress》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...