課程
/前端開發(fā)
/HTML/CSS
/初識HTML(5)+CSS(3)-升級版
我設置了其他顏色但是因為是超鏈接,提交后還是顯示藍色,這個怎么改
2020-04-29
源自:初識HTML(5)+CSS(3)-升級版 10-5
正在回答
可能是把超鏈接靠后的引號刪掉了
<!DOCTYPE html>
<html>
<head>
? ? <meta charset="UTF-8">
? ? <title>color顏色</title>
? ? <style type="text/css">
? ? ?.o{
? ? ? ? ? text-decoration:none;
? ? ? ? ? color:red;
? ? ? } ?
? ? ? .l{
? ? ? ? ? ?text-decoration:none;
? ? ? ? ?color:rgb(13,200,25);
? ? ? }
? ? ? .k{
? ? ? ? ? color:rgb(20%,99%,55%);
? ? </style>
</head>
<body>
? ? <a class="o" href="http://idcbgp.cn/">慕課網(wǎng)1</a>
? ? <a class="k" href="http://idcbgp.cn/">慕課網(wǎng)2</a>
? ? <a class="l" href="http://idcbgp.cn/">慕課網(wǎng)3</a>
</body>
</html>
? ? ? .class1{
? color:red;
? text-transform: none;
? }
? .class2{
? ? color:hotpink;
? ? text-transform: none;
? .class3{
? ? color:black;
? ? <a class="class1" href="http://idcbgp.cn/">慕課網(wǎng)1</a>
? ? <a class="class2" href="http://idcbgp.cn/">慕課網(wǎng)2</a>
? ? <a class="class3" href="http://idcbgp.cn/">慕課網(wǎng)3</a>
<style type="text/css">
? ? ? ? .a{
? ? ? ? ? ? color:red;
? ? ? ? }
? ? ? ? .b{
? ? ? ? ? ? color:RGB(255,0,0);
? ? ? ? .c{
? ? ? ? ? ? color:#FF0000;
? ? <a class="a" href="http://idcbgp.cn/">慕課網(wǎng)1</a>
? ? <a class="b" href="http://idcbgp.cn/">慕課網(wǎng)2</a>
? ? <a class="c" href="http://idcbgp.cn/">慕課網(wǎng)3</a>
a:hover{
? ? ? ? color:red;
? ? }
<a href="#" style="color:red">jjj</a>
我這個能改
舉報
HTML(5)+CSS(3)基礎教程8小時帶領大家步步深入學習標簽用法和意義
5 回答如果改變鏈接文本顏色?
4 回答第一個span里顏色設置為紅色,第二個顏色設置為綠色,最終會顯示綠色?
2 回答顏色的用法
2 回答沒有設置顏色時的字體顏色?
2 回答關于修改顏色那一行
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
2021-03-17
可能是把超鏈接靠后的引號刪掉了
2020-06-01
<!DOCTYPE html>
<html>
<head>
? ? <meta charset="UTF-8">
? ? <title>color顏色</title>
? ? <style type="text/css">
? ? ?.o{
? ? ? ? ? text-decoration:none;
? ? ? ? ? color:red;
? ? ? } ?
? ? ? .l{
? ? ? ? ? ?text-decoration:none;
? ? ? ? ?color:rgb(13,200,25);
? ? ? }
? ? ? .k{
? ? ? ? ? ?text-decoration:none;
? ? ? ? ? color:rgb(20%,99%,55%);
? ? ? }
? ? </style>
</head>
<body>
? ? <a class="o" href="http://idcbgp.cn/">慕課網(wǎng)1</a>
? ? <a class="k" href="http://idcbgp.cn/">慕課網(wǎng)2</a>
? ? <a class="l" href="http://idcbgp.cn/">慕課網(wǎng)3</a>
</body>
</html>
2020-05-19
<!DOCTYPE html>
<html>
<head>
? ? <meta charset="UTF-8">
? ? <title>color顏色</title>
? ? <style type="text/css">
? ? ? .class1{
? color:red;
? text-transform: none;
? }
? .class2{
? ? color:hotpink;
? ? text-transform: none;
? }
? .class3{
? ? color:black;
? ? text-transform: none;
? }
? ? </style>
</head>
<body>
? ? <a class="class1" href="http://idcbgp.cn/">慕課網(wǎng)1</a>
? ? <a class="class2" href="http://idcbgp.cn/">慕課網(wǎng)2</a>
? ? <a class="class3" href="http://idcbgp.cn/">慕課網(wǎng)3</a>
</body>
</html>
2020-05-02
<style type="text/css">
? ? ? ? .a{
? ? ? ? ? ? color:red;
? ? ? ? }
? ? ? ? .b{
? ? ? ? ? ? color:RGB(255,0,0);
? ? ? ? }
? ? ? ? .c{
? ? ? ? ? ? color:#FF0000;
? ? ? ? }
? ? </style>
</head>
<body>
? ? <a class="a" href="http://idcbgp.cn/">慕課網(wǎng)1</a>
? ? <a class="b" href="http://idcbgp.cn/">慕課網(wǎng)2</a>
? ? <a class="c" href="http://idcbgp.cn/">慕課網(wǎng)3</a>
</body>
2020-04-30
a:hover{
? ? ? ? color:red;
? ? }
2020-04-30
<a href="#" style="color:red">jjj</a>
我這個能改