content_shop無(wú)法顯示在瀏覽器端一般什么原因?代碼和你的一樣
問(wèn)題描述
<!DOCTYPE html>
<html>
<head>
<title>小米商城</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="static/css/mi.css">
<link rel="stylesheet" type="text/css" href="static/font-awesome/css/font-awesome.min.css">
<link rel="shortcut icon" type="image/x-icon" href="static/img/footlogo.png">
</head>
<body>
<div class="box">
<div class="header"></div>
<div class="content_top">
<div class="content">
<div class="content_menu"></div>
<div class="content_pic"></div>
<div class="content_shop">
<div class="content_shop_1"></div>
<div class="content_shop_2"></div>
<div class="content_shop_3"></div>
<div class="content_shop_4"></div>
</div>
</div>
</div>
<div class="content_bottom"></div>
<div class="footer_top"></div>
<div class="footer_bottom"></div>
</div>
</body>
</html>
css:
*{margin:0px;padding:0px;}
a{text-decoration: none;}
.header{width:100%;height: 40px;background:#333;}
.content_top{width: 100%; margin-bottom: 10px;}
.content_bottom{width: 100%;height:500px;background: #ccc;}
.footer_top{width: 100%;height: 100px;}
.footer_bottom{width: 100%;height:100px;background: #ccc;}
.content{width: 1226px;margin: 0px auto;}
.content_menu{width:1226px;height: 90px;background: pink;margin: 10px auto;}
.content_pic{width:1226px;height: 460px;background: url(../img/mi.jpg);}
.content_shop{width: 1226px;height:170;}
.content_shop_1{width:200px;height: 170;background: #ccc;float:left;margin-right: 10px;}
.content_shop_2{width:316px;height: 170;background: #ccc;float:left;margin-right: 10px;}
.content_shop_3{width:316px;height: 170;background: #ccc;float:left;margin-right: 10px;}
.content_shop_4{width:316px;height: 170;background: #ccc;}
問(wèn)題解答
回答1:你在html里寫(xiě)內(nèi)聯(lián)樣式,不得套個(gè)<style>標(biāo)簽嗎。。。
相關(guān)文章:
1. php - mysql 模糊搜索問(wèn)題2. php如何獲取訪問(wèn)者路由器的mac地址3. javascript - js setTimeout在雙重for循環(huán)中如何使用?4. php - 微信開(kāi)發(fā)驗(yàn)證服務(wù)器有效性5. javascript - 在 vue里面用import引入js文件,結(jié)果為undefined6. 小程序怎么加外鏈,語(yǔ)句怎么寫(xiě)!求救新手,開(kāi)文檔沒(méi)發(fā)現(xiàn)7. html - 爬蟲(chóng)時(shí)出現(xiàn)“DNS lookup failed”,打開(kāi)網(wǎng)頁(yè)卻沒(méi)問(wèn)題,這是什么情況?8. 求救一下,用新版的phpstudy,數(shù)據(jù)庫(kù)過(guò)段時(shí)間會(huì)消失是什么情況?9. python沒(méi)入門(mén),請(qǐng)教一個(gè)問(wèn)題10. javascript - 我的站點(diǎn)貌似被別人克隆了, google 搜索特定文章,除了域名不一樣,其他的都一樣,如何解決?
