Emlog文章内页无插件实现快捷按钮工具

  • 内容
  • 相关

Emlog文章内页无插件实现快捷按钮工具

首先在echo_log.php合适位置添加如下代码:

<div class="log_a"> 
<span class="zd_1"><a href="#comments" > <i class="fa fa-comment"></i> 评论一下</a></span> 
<span class="zd_2"><a href="图片地址" ><i class="fa fa-yen"></i> 赞助本博</a></span> 
<span class="zd_3"><a href="http://user.qzone.qq.com/1031049549" target="_blank"> <i class="fa fa-android"></i> 关注空间</a></span> 
 <span class="zd_4"><a href="http://wpa.qq.com/msgrd?v=3&uin=1031049549&site=qq&menu=yes" > <i class="fa fa-qq"></i> 联系站长</a></span>
</div>

之后增加CSS样式:

/*---文章页面自定义--*/
.log_a{text-align:center;width:100%;margin:30px auto 10px;height:45px;}
.log_a .zd_1{display: inline-block;color:#fff;background:#5cb85c;font-size:14px;padding:10px 20px;font-weight:bold;box-shadow: 0 0 4px 1px rgba(0,150,0,0.3);border-radius:4px;background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:30px 30px;}
.log_a .zd_2{display: inline-block;margin-left:20px;color:#fff;background:#799ca9;padding:10px 20px;font-size:14px;font-weight:bold;box-shadow:0 0 4px 1px rgba(0,150,0,0.3);border-radius:4px;background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:30px 30px;}
.log_a .zd_3{display: inline-block;margin-left:20px;color:#fff;background:#573b69;font-size:14px;padding:10px 20px;font-weight:bold;box-shadow: 0 0 4px 1px rgba(0,150,0,0.3);border-radius:4px;background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:30px 30px;}
.log_a .zd_4{display: inline-block;margin-left:20px;color:#fff;background:#63A8DF;padding:10px 20px;font-size:14px;font-weight:bold;box-shadow:0 0 4px 1px rgba(0,150,0,0.3);border-radius:4px;background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:30px 30px;}
.log_a .zd_1 a,.zd_2 a,.zd_3 a,.zd_4 a{color:#fff}
.zd_1:hover,.zd_2:hover,.zd_3:hover,.zd_4:hover{background:#00aff0;cursor:pointer;background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px;}

本文标签:

版权声明:若无特殊注明,本文皆为《枫叶》原创,转载请保留文章出处。

本文链接:https://www.maple5.com/technology/650.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注

允许邮件通知