body{font-size: 12px; font-family: 宋体;color: #222} body,h2,ul,li{ padding: 0; margin: 0; list-style: none;} .all{ width: 300px; height: 200px; margin: 20px auto; } .head{ font-size: 12px; color: #fff; height: 30px; line-height: 30px; border-bottom: 5px solid #ff0000; /* background: #f60 ### nope */ padding-left: 34px; } .content{ padding: 25px 0 0 15px; background: #fff5ee; } .content li{ height: 26px; /* background: url(); */ padding-left: 22px; } .content li a:link,.content li a:visited{ color: #666; text-decoration: none; } .content li 1 a :hover{ color: #ff0000; ; } .content li a:hover{ color: #000; ; }帮我看看怎么更改超链接后的文字颜色
时间: 2023-06-17 11:03:35 浏览: 69
你可以将以下代码添加到你的CSS文件中,来更改超链接后的文字颜色:
.content li a:link, .content li a:visited {
color: #666;
text-decoration: none;
}
.content li a:hover {
color: #000;
}
把其中的 color 属性值改为你想要的颜色即可。
相关问题
body{ font-size: 30px; color: #4288ce; }
I'm sorry, it seems like the CSS code you provided is incomplete. Could you please provide the full code so I can better understand the context of your question and provide a proper response?
将这段代码改为jQuery代码 <style type="text/css"> h1 { text-align: center; font-size: 40px; font-family:"楷体"; text-shadow: 5px 5px 5px #000000; } p { font-family: verdana; font-size: 20px; text-indent: 330px; font-family:"仿宋"; } .row p { display: inline-block; width: 4em; text-align: justify; text-align-last: justify; } body { font-family: "Lato", sans-serif,background="12(1).jpg"; } .sidenav { height: 100%; width: 0; position: fixed; z-index: 1; top: 0; left: 0; background-color: #111; overflow-x: hidden; transition: 0.5s; padding-top: 60px; } .sidenav a { padding: 8px 8px 8px 32px; text-decoration: none; font-size: 25px; color: #818181; display: block; transition: 0.3s; } .sidenav a:hover, .offcanvas a:focus{ color: #f1f1f1; } .sidenav .closebtn { position: absolute; top: 0; right: 25px; font-size: 36px; margin-left: 50px; } #main { transition: margin-left .5s; padding: 16px; } @media screen and (max-height: 450px) { .sidenav {padding-top: 15px;} .sidenav a {font-size: 18px;} } img{ width:30px; height:40px; } </style>
$('head').append('<style type="text/css">h1{text-align:center;font-size:40px;font-family:"楷体";text-shadow:5px 5px 5px #000000;}p{font-family:verdana;font-size:20px;text-indent:330px;font-family:"仿宋";}.row p{display:inline-block;width:4em;text-align:justify;text-align-last:justify;}body{font-family:"Lato",sans-serif,background="12(1).jpg";} .sidenav{height:100%;width:0;position:fixed;z-index:1;top:0;left:0;background-color:#111;overflow-x:hidden;transition:0.5s;padding-top:60px;}.sidenav a{padding:8px 8px 8px 32px;text-decoration:none;font-size:25px;color:#818181;display:block;transition:0.3s;}.sidenav a:hover,.offcanvas a:focus{color:#f1f1f1;}.sidenav .closebtn{position:absolute;top:0;right:25px;font-size:36px;margin-left:50px;}#main{transition:margin-left .5s;padding:16px;}@media screen and (max-height:450px){.sidenav{padding-top:15px;}.sidenav a{font-size:18px;}}img{width:30px;height:40px;}</style>');
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)