亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

分享一下成功案例

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>3.1頁面頭部制作練習題</title>

<style type="text/css">

/*在此定義相關樣式,控制列表的顯示形式*/

.box{

? ??

}

.box li{

? ? float:left;

? ? width:50px;

? ? height:30px;

? ? list-style-type:none;

}


.box a{

? ? display:block;

? ? text-align:center;

? ? line-height:30px;

? ? text-decoration:none;

}

.box a:hover{

? ? background-color:#BE3948;

? ? color:white;

}

</style>

</head>


<body>

<h3>課程難度</h3>


<!--在此制作一個無序列表-->


<ul class="box">

? ? <li><a href="">全部</a></li>

? ? <li><a href="">初級</a></li>

? ? <li><a href="">中級</a></li>

? ? <li><a href="">高級</a></li>

</ul>



</body>

</html>


正在回答

2 回答

你這個是不對的。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>3.1頁面頭部制作練習題</title>

<style type="text/css">

/*在此定義相關樣式,控制列表的顯示形式*/

.box li{

? ? list-style-type:none;

? ? float:left;

? ? line-height:30px;

? ? text-align:center;

}

.box a{

? ? text-decoration:none;

? ? display:block;

? ? width:50px;

? ? height:30px;

}

.box a:link,.box a:visted{

? ? text-decoration:none;

? ? color:black;

}

.box a:hover,.box a:active{

? ? color:white;

? ? background-color:red;

? ??

}


</style>

</head>

<body>

<h3>課程難度</h3>


<!--在此制作一個無序列表-->

<div class="box">

<ul>

? ? <li><a href="#">全部</a></li>

? ? <li><a href="#">初級</a></li>

? ? <li><a href="#">中級</a></li>

? ? <li><a href="#">高級</a></li>

</ul>

</div>




</body>

</html>


0 回復 有任何疑惑可以回復我~

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>3.1頁面頭部制作練習題</title>

<style type="text/css">

/*在此定義相關樣式,控制列表的顯示形式*/



li{

? ? width:50px;

? ? height:30px;

? ?

? ?

? ? text-decoration:none;

? ??

? ? ?text-align:center;

? ? ?float:left;

? ? ?list-style-type:none;

}

a{

? ? display:block;

}




a:link,a:visited{

? color:black;

? text-decoration:none;

? ? ?

}

?a:hover,a:active{

? ?

? ? ?background-color:#BE3948;

? ??

? ? color:white;


? ?

??

}





</style>

</head>


<body>

<h3>課程難度</h3>


<!--在此制作一個無序列表-->


<ul>

? ? <li><a href="#" >全部</a></li>

? ? <li><a href="#" >初級</a></li>

? ? <li><a href="#" >中級</a></li>

? ? <li><a href="#" >高級</a></li>

</ul>? ??

? ??

? ??






</body>

</html>


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

分享一下成功案例

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號