第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

設(shè)置了Nav的CSS屬性但是瀏覽器網(wǎng)站內(nèi)容沒變化?

http://img1.sycdn.imooc.com//59127fea000176a013620305.jpg

代碼如下:

.nav

{

height:40px;

}


.nav_left

{

width:10px;

background:url(../images/nav_left.jpg) no-repeat;

? /*background-image:url(../images/nav_left.jpg);

background-repeat:no-repeat;*/

float:left;

}


.nav_mid

{

width:980px;

background:url(../images/nav_bd.jpg) repeat-x;

float:left;

}


.nav_right

{

width:10px;

background:url(../images/nav_right.jpg) no-repeat;

float:left;

}


正在回答

3 回答

你把html代碼貼出來看看,可能是沒有引用類

0 回復(fù) 有任何疑惑可以回復(fù)我~

檢查了一中午的代碼,終于知道錯(cuò)誤在哪里了,寫錯(cuò)了一個(gè)英語字母,多么痛的領(lǐng)悟!要平鋪的圖片,nav_bg.jpg寫成nav_bd.jpg了......

.nav_mid

{

width:980px;

background:url(../images/nav_bd.jpg) repeat-x;

float:left;

}


0 回復(fù) 有任何疑惑可以回復(fù)我~

你好,這是HTML文件代碼:

<!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=utf-8"/>

<title>no title text</title>

<link href="css/main.css" rel="stylesheet" type="text/css" />

<script src="js/setHomeSetFav.js" type="text/javascript charset="gb2312"></script>

</head>


<body>

<div class="top">

<div class="top_content"</div>

<ul>

<li><a href="#")">聯(lián)系我們</a></li>

<li><a href="#" onclick="AddFavorite(window.location,document.title)">加入收藏</a></li>

<li><a href="#" onclick="SetHome(window.location)">設(shè)為首頁</a></li>

</ul>

</div><!--top結(jié)束-->

<div class="wrap">

<div class="logo">

<div class="logo_left"><img src="images/logo.jpg" alt="慕課網(wǎng)"/></div>

<div class="logo_right"><img src="images/tel.jpg" alt="服務(wù)熱線"/>24小時(shí)服務(wù)熱線:<span class="tel">5201314</span></div>

</div><!--logo結(jié)束-->

<div class="nav">

<div class="nav_left"></div>

<div class="nav_mid">

<div class="nav_mid_left"></div>

<ul>

<li><a href="#">首頁</a></li>

<li><a href="list.html">關(guān)于慕課</a></li>

<li><a href="list.html">新聞動(dòng)態(tài)</a></li>

? ? <li><a href="list.html">課程中心</a></li>

<li><a href="list.html">在線課程</a></li>

<li><a href="list.html">人才招聘</a></li>

</ul>

<div class="nav_mid_right">

<form action=""method="post">

<input type="text"/>

</form>

</div>

</div><!--nav_middle結(jié)束-->

<div class="nav_right"></div>

</div><!--nav結(jié)束-->

</div><!--wrap結(jié)束-->

</body>

</html>


這是CSS文件代碼:

@charset "utf-8";

/* CSS Document */


*

{

margin: 0;

padding: 0;

font-size: 12px;

}


body

{

background-color: #F5F5F5;

}


/*.wrap

{

width: 1000px;

margin: 0 auto;

}*/


.top

{

width: 100%;

height: 27px;

background: url(../images/top_bg.jpg) repeat-x;

}


.top_content

{

width: 1000px;

margin: 0 auto;

}


.top_content li{

list-style-image: url(../images/li_bg.gif);

float: right;

width: 70px;

line-height: 27px;

}


.top_content a:link,.top_content a:visited{

color: #8E8E8E;

text-decoration: none;

}


.top_content a: hover,.top_content a:active{

color: #900;

text-decoration: none;

}


.wrap

{

width: 1000px;

margin: 0 auto;

clear: both;

}


.logo

{

height: 80px;

? ? background-color: #FFF;

overflow: hidden;

}


.logo_left

{

width: 200px;

float: left;

}


.logo_right

{

width: 300px;

float: right;

height: 28px;

margin-top: 30px;

color: #8E8E8E;

}



.logo_right img

{

vertical-align: middle;

margin-right: 10px;

}


.tel

{

font-family: "微軟雅黑";

font-size: 16px;

color: #C00;

}


.nav

{

height: 40px;

clear: both;

}


.nav_left

{

width: 10px;

background: url(../images/nav_left.jpg) no-repeat;

float:left;

}


.nav_mid

{

width: 980px;

background: url(../images/nav_bd.jpg) repeat-x;

float:left;

}


.nav_right

{

width: 10px;

background: url(../images/nav_right.jpg) no-repeat;

float:left;

}



0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

設(shè)置了Nav的CSS屬性但是瀏覽器網(wǎng)站內(nèi)容沒變化?

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)