content_shop无法显示在浏览器端一般什么原因?代码和你的一样
问题描述
<!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;}
问题解答
回答1:你在html里写内联样式,不得套个<style>标签吗。。。
相关文章:
1. python - (初学者)代码运行不起来,求指导,谢谢!2. 为什么python中实例检查推荐使用isinstance而不是type?3. mysql里的大表用mycat做水平拆分,是不是要先手动分好,再配置mycat4. window下mysql中文乱码怎么解决??5. sass - gem install compass 使用淘宝 Ruby 安装失败,出现 4046. html5 - H5 SSE的本质是什么?7. javascript - h5上的手机号默认没有识别8. python - 获取到的数据生成新的mysql表9. python的文件读写问题?10. javascript - js 对中文进行MD5加密和python结果不一样。
