PHP鼠标滑过变色命令,WordPress鼠标悬停变色的修改方法

原创内容,转载请注明出处:https://www.myzhenai.com.cn/post/3253.html

关键词:wordpress 鼠标 悬停 变色

我总是觉得我两个WordPress博客的主题里使用的鼠标悬停变色的颜色不太喜欢,就是当鼠标划过或停留在某一个链接上的时候,该链接会改变颜色,只不过那种颜色不是我喜欢的,我就想改变更换其他颜色。

方法也很简单,修改当前主题下的style.css文件就可以了。使用关键词是 hover

一、获取颜色代码

可以使用photoshop或gimp等图像处理软件里的颜色吸管或颜色面板来获得某个颜色的html编码,例如我使用的是 #2cc1a4

二、修改style.css文件

查找hover关键词,替换该项的color值即可。

例如我的两个博客的修改内容,在这里做个记录,免得以后升级的时候又要重新折腾。

b82d3b213f8f5f962ddc7a43d1cd8558.png

mybabya.com 替换 #ff4b33

small {

font-size: smaller;

}

input[type="text"],

input[type="password"],

input[type="email"],

input[type="url"],

input[type="number"],

textarea {

background: #f9f9f9;

border: 1px solid #ccc;

box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);

-moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);

-webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);

padding: 2px;

}

a:link {

color: #0066cc;

}

a:visited {

color: #2cc1a4;

}

a:active,

a:hover {

color: #2cc1a4;

}

.page-title a:active,

.page-title a:hover {

color: #2cc1a4;

}

.entry-title a:active,

.entry-title a:hover {

color: #2cc1a4;

}

.page-link a:active,

.page-link a:hover {

color: #2cc1a4;

}

.entry-meta a:hover,

.entry-utility a:hover {

color: #2cc1a4;

}

.navigation a:active,

.navigation a:hover {

color: #2cc1a4;

}

.comment-meta a:active,

.comment-meta a:hover {

color: #2cc1a4;

}

.reply a:hover,

a.comment-edit-link:hover {

color: #2cc1a4;

}

#respond .required {

color: #2cc1a4;

font-weight: bold;

}

a:link {

color: #0066cc;

}

a:visited {

color: #2cc1a4;

}

a:active,

a:hover {

color: #2cc1a4;

}

a:link {

color: #0066cc;

}

a:visited {

color: #2cc1a4;

}

a:active,

a:hover {

color: #2cc1a4;

3ba0716c13a500ebcbaf71be65c82a99.png

myzhenai.com.cn

.search-form input {

width: 100%;

border: 1px solid #423c37;

border-radius: 15px;

padding: 5px 15px;

font-family: "Titillium Web", sans-serif;

font-size: 0.75em;

text-transform: uppercase;

color: #2cc1a4;

background: #ffffff;

box-shadow: inset 0px 1px 3px rgba(0,0,0,0.4);

}

.search-form .search-icon i {

font-size: 14px;

color: #2cc1a4;

-webkit-transition: all 0.250s ease-in-out;

-moz-transition: all 0.250s ease-in-out;

-o-transition: all 0.250s ease-in-out;

transition: all 0.250s ease-in-out;

}

#slider .slide .slide-description .inner-sd {

border: 1px solid #2cc1a4;

border-radius: 5px;

height: 100%;

padding: 20px 30px;

}

/* Slider Meta */

#slider .sd-meta {

border: 1px solid #2cc1a4;

border-radius: 3px;

padding: 10px;

margin-top: 15px;

}

#slider .sd-meta .read-more:hover {

color: #2cc1a4;

}

.featured-carousel .slide .article-content header a:hover {

color: #2cc1a4;

}

.article-container article header .title:hover {

color: #2cc1a4;

}

.article-container article header .meta .categ a:hover {

color: #2cc1a4;

}

#latest-reviews-block .lrb-navigation .article-link {

border-bottom: 1px dotted #2cc1a4;

}

#latest-reviews-block .article-link.active, #latest-reviews-block .article-link:hover {

background: #2cc1a4;

cursor: pointer;

}

#latest-reviews-block .article-link.active .article-title a, #latest-reviews-block .article-link:hover .article-title a {

color: #2cc1a4;

}

#latest-reviews-block .article-link .article-title {

margin: 0;

padding: 0;

font-family: "Arvo", sans-serif;

color: #2cc1a4;

font-size: 1.250em;

font-weight: normal;

line-height: 1;

}

#latest-reviews-block .article-link .article-title a {

color: #2cc1a4;

-webkit-transition: all 0.250s ease-in-out;

-moz-transition: all 0.250s ease-in-out;

-o-transition: all 0.250s ease-in-out;

transition: all 0.250s ease-in-out;

}

#latest-reviews-block .article-link .article-meta .categ a {

font-family: "Titillium Web", sans-serif;

text-transform: uppercase;

display: block;

font-size: 0.750em;

color: #2cc1a4;

font-weight: 600;

margin-top: 5px;

margin-bottom: -6px;

}

#latest-reviews-block .article-link .article-meta .date {

color: #2cc1a4;

font-size: 0.750em;

font-family: "Titillium Web", sans-serif;

text-transform: uppercase;

line-height: 1;

}

#latest-reviews-block .lrb-navigation .nav-top:hover, #latest-reviews-block .lrb-navigation .nav-bottom:hover {

cursor: pointer;

color: #2cc1a4;

}

#latest-reviews-block .article-display .article-title a:hover {

color: #2cc1a4;

}

#latest-reviews-block .article-display .a-details .category a:hover {

color: #2cc1a4;

}

#highlight-day .title a:hover {

color: #2cc1a4;

}

#highlight-day .meta .categ a:hover {

color: #2cc1a4;

}

nav.navigation .page-numbers {

display: inline-block;

text-align: center;

border-radius: 3px;

font-family: "Arvo", sans-serif;

margin-right: 5px;

background: #2cc1a4;

color: #fff;

line-height: 2;

-webkit-transition: all 0.250s ease-in-out;

-moz-transition: all 0.250s ease-in-out;

-o-transition: all 0.250s ease-in-out;

transition: all 0.250s ease-in-out;

padding: 0em 0.7em;

}

nav.navigation .page-numbers:not(.current):hover{

background: #2cc1a4;

}

.widget ul li a:hover {

color: #2cc1a4;

}

.widget .tagcloud a:hover {

color: #2cc1a4;

}

.topbooks .title a:hover {

color: #2cc1a4;

}

.topbooks .meta .categ a:hover {

color: #2cc1a4;

;

}

.latest-comments .widget h4 a:hover {

color: #2cc1a4;

;

}

#main-footer .widget .comment a:hover, #main-footer .widget .article a {

color: #2cc1a4;

}

#main-footer .widget ul .recentcomments a:hover {

color: #2cc1a4;

}

.widget.latest-articles .article a:hover {

color: #2cc1a4 !important;

}

.article-container.post > header .article-details .categ a:hover {

color: #2cc1a4;

}

.article-container.post #wrap-up .review-header .categories a:hover {

color: #2cc1a4;

}

#author-box .author-details h3 a:hover {

color: #2cc1a4;

}

#comments-section #comments-container .comment .author-name a:hover {

color: #2cc1a4;

}

#inner-header .logo a{

color: #18bfef;

}

#inner-header .logo a:hover{

color: #2cc1a4;

}

#slider .slide .slide-description .sd-title a {

font-family: "Arvo", sans-serif;

color: #18bfef;

font-size: 1.3em;

font-weight: normal;

-webkit-transition: all 0.250s ease-in-out;

-moz-transition: all 0.250s ease-in-out;

-o-transition: all 0.250s ease-in-out;

transition: all 0.250s ease-in-out;

}

#slider .sd-meta .read-more {

float: right;

padding: 0;

font-family: "Titillium Web", sans-serif;

text-transform: uppercase;

font-weight: bold;

font-size: 1em;

color: #18bfef;

line-height: 1.5;

-webkit-transition: all 0.250s ease-in-out;

-moz-transition: all 0.250s ease-in-out;

-o-transition: all 0.250s ease-in-out;

transition: all 0.250s ease-in-out;

}

#slider .sd-meta .read-more:hover {

color: #2cc1a4;

}

#slider .sd-meta span a, #slider .sd-meta span {

color: #18bfef;

font-family: "Titillium Web", sans-serif;

-webkit-transition: all 0.250s ease-in-out;

-moz-transition: all 0.250s ease-in-out;

-o-transition: all 0.250s ease-in-out;

transition: all 0.250s ease-in-out;

}

#slider .sd-meta span a:hover {

color: #2cc1a4;

}

.article-container article header .title {

color: #18bfef;

font-family: "Arvo", sans-serif;

font-weight: normal;

font-size: 1.438em;

-webkit-transition: all 0.250s ease-in-out;

-moz-transition: all 0.250s ease-in-out;

-o-transition: all 0.250s ease-in-out;

transition: all 0.250s ease-in-out;

}

.article-container article .feat-img {

width: 150px;

height: 150px;

overflow: hidden;

border-radius: 50%;

position: relative;

float: left;

margin-right: 20px;

background-color: #ddd;

}

/* Featured Carousel - Content */

.featured-carousel .slide .feat-img {

float: left;

width: 150px;

height: 150px;

border-radius: 50%;

overflow: hidden;

margin-right: 2.5%;

position: relative;

}

.featured-carousel .slide .feat-img img {

width: 100%;

height: 100%;

}

sicnature ---------------------------------------------------------------------

Your current IP address is: 112.194.65.118

Your IP address location: 四川省南充市联通

Your IP address country and region: 中国

3211c715c0bf352c3fa72980bf0cc419.png

Your current browser is:

b2cb575f9cbd2e36961b3bf406c3355c.png

Your current system is:

mac.png

Original content, please indicate the source:

同福客栈论坛 | 蟒蛇科普 | 海南乡情论坛 | JiaYu Blog

sicnature ---------------------------------------------------------------------

Welcome to reprint. Please indicate the source https://www.myzhenai.com/post/3253.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/411485.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

圆面积异常

package zengliang;import java.util.*;public class Suv {public static void main(String[] args) {// TODO 自动生成的方法存根try{double r,s;final double PI 3.14;Scanner scnew Scanner(System.in);System.out.println("输入圆的半径:");r sc.ne…

[html] html5哪些标签可以优化SEO?

[html] html5哪些标签可以优化SEO? 跟标签语义化有关,从上往下:meta titlenav header main article section aside footerfigure picture time video audio个人简介 我是歌谣,欢迎和大家一起交流前后端知识。放弃很容易, 但坚持…

sql语句的效率

1、尽量避免反复访问同一张或几张表,尤其是数据量较大的表,可以考虑先根据条件提取数据到临时表中,然后再做连接。 2、尽量避免使用游标,因为游标的效率较差,如果游标操作的数据超过1万行,那么就应该改写&a…

php跳转分站,PHP判断IP并转跳到相应城市分站的方法

本文实例讲述了PHP判断IP并转跳到相应城市分站的方法。分享给大家供大家参考。具体实现方法如下:class QQWry{var $StartIP0;var $EndIP0;var $Country;var $Local;var $CountryFlag0;// 标识 Country位置// 0x01,随后3字节为Country偏移,没有Local// 0x02,随后3字节…

SpringBoot学习笔记(9)----SpringBoot中使用关系型数据库以及事务处理

在实际的运用开发中,跟数据库之间的交互是必不可少的,SpringBoot也提供了两种跟数据库交互的方式。 1. 使用JdbcTemplate 在SpringBoot中提供了JdbcTemplate模板类,JdbcTemplate提供的方法进行增删改查的操作。 首先需要在pom文件中添加依赖:…

[html] webSocket怎么做兼容处理?

[html] webSocket怎么做兼容处理? Socket.IO:Adobe Flash Socket(缺点:需要在服务器上打开一个额外的端口,默认为10843)Ajax long pollingAjax multipart streamingForever iframeJSONP polling个人简介 我是歌谣&am…

农民第六次拯救中国

农民第六次拯救中国 英国《金融时报》中文网专栏作家吴晓波 2008-11-18 1989年,我第一次行走中国。在此之前,我是一个成长在江南城市里的文学青年,我只读到过课本上的中国,在用5个月时间踏遍南部中国之后,我在社会底层…

java base64转bitmap,如何将Bitmap位图与base64字符串相互转换

先引用delphi自带的单元uses EncdDecd;然后就可以使用下面二个函数了:///将Bitmap位图转化为base64字符串function BitmapToString(img:TBitmap):string ;varms:TMemoryStream;ss:TStringStream;s:string;beginms : TMemoryStream.Create;img.SaveToStream(ms);ss : TStringStr…

剑指offer——用两个栈实现队列

题目:用两个栈来实现一个队列,完成队列的Push和Pop操作。 队列中的元素为int类型。 解题思路: 当stack2不为空时,在stack2中的栈顶元素是最先进入队列的元素,可以弹出。当stack2为空时,我们把stack1中的元素…

[html] 解释下什么是ISISO8859-2字符集?

[html] 解释下什么是ISISO8859-2字符集? 这个知识点在非科班的来看算是比较偏门的了。 查了一下才知道,原来是Ascll扩展部分的字符集。ISO/IEC 8859-1,又称Latin-1或“西欧语言”,ISO/IEC 8859-2 Latin-2或“中欧语言”&#xff…

常系数线性递推的第n项及前n项和(转载)

(一)Fibonacci数列f[n]f[n-1]f[n-2],f[1]f[2]1的第n项的快速求法(不考虑高精度). 解法: 考虑12的矩阵【f[n-2],f[n-1]】。根据fibonacci数列的递推关系,我们希望通过乘以一个22的矩阵,得到矩阵【…

Processes

转载于:https://www.cnblogs.com/EMH899/p/10844709.html

linux java 进程jvm 挂起,【jvm】jconsole远程linux上的java进程

1、启动java进程的命令在启动命令中添加如下信息-Djava.rmi.server.hostname192.169.1.71 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port10099 -Dcom.sun.management.jmxremote.authenticatefalse -Dcom.sun.management.jmxremote.sslfalse说明-Djava.r…

[html] 说说video标签中预加载视频用到的属性是什么?

[html] 说说video标签中预加载视频用到的属性是什么? 个人简介 我是歌谣,欢迎和大家一起交流前后端知识。放弃很容易, 但坚持一定很酷。欢迎大家一起讨论 主目录 与歌谣一起通关前端面试题

CodeSmith 5.0工具实例篇系列4——根据表生成修改的存储过程,针对MS Sqlserver

运行该模板时,只需要选择单个表即可。 申明:该系列案例已通过CodeSmith Professional 5.0.1 Revision 4983版本的测试,以及生成的存储过程是针对MS Sqlserver。 操作说明 :运行CodeSmith Studio工具 ,创建Blank Templa…

[html] HTML5中新添加的表单属性有哪些?

[html] HTML5中新添加的表单属性有哪些? 用的最多的就是一个 placeholder 属性了,其他的基本都不知道,借机学习下 HTML5 表单属性,学完之后感觉我们很多自定义表单可以不用做了,直接用原生的就好。如:list…

差分放大电路单端输出和双端输出区别以及应用(转载)

来自:http://www.elecfans.com/news/dianzi/20171118581901_a.html 什么是差分放大电路 差分放大电路利用电路参数的对称性和负反馈作用,有效地稳定静态工作点,以放大差模信号抑制共模信号为显著特征,广泛应用于直接耦合电路和测量…

php 识别语种,HYPHP增加多国语言支持 PHP通过用户浏览器判断来源国家方案

PHP可以通过获取浏览器发送的 ACCEPT_LANGUAGE去检测语言$_SERVER[HTTP_ACCEPT_LANGUAGE] 得到的值为 zh-CN,zh;q0.8zh-CN 我们只需要获取这段 后面的是, zh是中华的意思;q是页面权重的意思我们通过正则将 zh-CN获取出来if(!isset($_SERVER[HTTP_ACCEPT_LANGUAGE])) $_SERVER[…

[html] 给“测试投影”几个字添加立体投影的效果

[html] 给“测试投影”几个字添加立体投影的效果 text-shadow个人简介 我是歌谣,欢迎和大家一起交流前后端知识。放弃很容易, 但坚持一定很酷。欢迎大家一起讨论 主目录 与歌谣一起通关前端面试题

python实现归并排序

# 将递归分解列表,直至最小(即每个列表仅有一个元素) # 将列表分解最小之后,递归合并两个列表,即挨个比较两个列表中最前面的元素,谁较小就将谁加入新的列表,而后该列表的下标后移一位&#xff…