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. javascript - 百度echarts series數(shù)據(jù)更新問(wèn)題2. javascript - JS設(shè)置Video視頻對(duì)象的currentTime時(shí)出現(xiàn)了問(wèn)題,IE,Edge,火狐,都可以設(shè)置,反而chrom卻...3. php自學(xué)從哪里開(kāi)始?4. MySQL客戶(hù)端吃掉了SQL注解?5. css3 - [CSS] 動(dòng)畫(huà)效果 3D翻轉(zhuǎn)bug6. python小白的基礎(chǔ)問(wèn)題 關(guān)于while循環(huán)的嵌套7. java固定鍵值轉(zhuǎn)換,使用枚舉實(shí)現(xiàn)字典?8. 求大神幫我看看是哪里寫(xiě)錯(cuò)了 感謝細(xì)心解答9. phpstady在win10上運(yùn)行10. java - 我設(shè)置了cookie的max age,但是cookie依然在關(guān)閉游覽器后消失了
