蓝色跟什么颜色搭配好看 css

html-css013

蓝色跟什么颜色搭配好看 css,第1张

a{color: #0162f4}鼠标离开的时候颜色为蓝色,#0162f4颜色代码自己改a:hover{text-decoration:underlinecolor: #C20C0C}鼠标经过的时候出现下划线text-decoration:underline,不要下划线改成text-decoration:none即可,color: #C20C0C为鼠标经过时字体显示的颜色!

$(document).ready(function(){

    var li=$("ul li")

    li.onclick(function(){

        $(this).addClass("blue").siblings().removeClass("blue")

    })

})

.blue{background-color:blue}

这个是同页面的;不同页面也要如此效果的话,你只能每个页面的当前li设置底色,没得选。

使用伪类改变颜色就可以了,点击前为蓝色,点击后为紫色,根据自己需要改变颜色就可以了。

a{text-decoration: underline} /*链接无下划线none,有为underline*/

a:link {color: #00007ftext-decoration: underline} /*未访问的链接 */

a:visited {color: #65038etext-decoration: underline} /*已访问的链接*/

a:hover{color: #ff0000text-decoration: underline} /*鼠标在链接上 */

a:active {color: #ff0000text-decoration: underline} /*点击激活链接*/

如果一直都是蓝色不变,也可以直接

a{color:blue}