修改chrome浏览器的背景颜色为豆沙绿的完美办法

来源:互联网 发布:网络销售有前景吗 编辑:程序博客网 时间:2024/04/30 16:44

关于标题提到的办法,网上已经有很多介绍了。最主流的做法是下载chrome的专用插件stylist  然后在代码区里定制自己喜欢的背景颜色

但是我发现仅仅使用这段代码  body  {background-color:#C7EDCC !important;} 

这样出来的效果是整个网页全变绿了,图片、输入框和链接看不清

于是耐心的百度,终于找到一个比较接近完美的解决办法,就是下面这段代码,在这里可以定制自己喜欢的颜色,包括背景、标题、链接、表格等对象


body  {background-color:#C7EDCC !important;}
div   {background-color:transparent!important;}
table {background-color:#000000 !important;}
td    {background-color:#C7EDCC !important;}
tr    {background-color:#C7EDCC !important;}
th    {background-color:#C7EDCC !important;}


a:link    {color:#000000!important;}     /* 未访问的链接 */
a:visited {color:#000000!important;}     /* 已访问的链接 */
a:hover   {color:#000000!important;background:C7EDCC!important;} /* 当有鼠标悬停在链接上 */
a:active  {color:#000000!important;background:C7EDCC!important;} /* 被选择的链接 */

原创粉丝点击