【求助】大佬帮忙看下代码 设计视图是正确的,F12严重变形
dw吧
全部回复
仅看楼主
level 1
李宁 楼主
主要是div+css。图片如下:
代码如下:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
body {
background-color: #ccc;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
#bao {
width: 900px;
margin-left: 250px;
padding: 0px
}
#yetou {width: 900px;
height: 238px;
padding: 0px
}
#daohang {width: 900px;
height: 405px;
padding: 0px
}
#neirong1 {
width: 450px;
height: 227px;
margin: 0px;
padding: 0px;
background-image: url(images/3.gif);
background-repeat: no-repeat
}
#neirong2 {
width: 450px;
height: 227px;
margin-top: -227px;
margin-left: 450px;
padding: 0px;
background-image: url(images/4.gif);
background-repeat: no-repeat
}
#neirong3 {
width: 450px;
height: 243px;
margin: 0px;
padding: 0px;
background-image: url(images/5.gif);
background-repeat: no-repeat
}
#neirong4 {width: 450px;
height: 227px;
margin-top: -243px;
margin-left: 450px;
padding: 0px
}
#yewei {width:900px;
height: 41px;
margin: 0px
}
#neirong1 p {padding-top: 60px;
padding-left: 55px;
padding-right: 10px;
font-family: "黑体";
font-size: 14px;
line-height: 24px}
#neirong2 p {padding-top: 30px;
padding-left: 10px;
padding-right: 200px;
font-family: "黑体";
font-size: 14px;
line-height: 18px}
#neirong3 p {padding-top: 30px;
padding-left: 35px;
padding-right: 35px;
font-family: "黑体";
font-size: 14px;
line-height: 24px}
</style>
</head>
<body>
<div id="bao">
<div id="yetou"><img src="images/1.gif" width="900" height="238" alt=""/></div>
<div id="daohang"><img src="images/2.gif" width="900" height="405" alt=""/></div>
<div id="neirong1"> <p>人文:以人为本,提高文化素养,创造美好工作生活环境;<br>合作:团队精神、精诚合作;诚信:正直诚实、信誉第一;<br>共赢:为客户创造价值,为公司创造价值,为员工创造价值;<br> 环保:高效节俭,科技创新,倡导低碳清洁发展。</p></div>
<div id="neirong2"><p>日本大塚化学的强效甲醛捕捉剂是专门以清除醛类物质(甲醛、乙醛)为目的而开发的产品,针对室内甲醛污染、以及家具板材中的游离甲醛,有着卓越的清除功能。经中国室内车内环境监测工作委员会检测甲醛清除率在 95%以上。并且被中国室内装饰协会室内环境净化治理选定为优秀产品</p></div>
<div id="neirong3"><p>修饰后该如何净化空气,面临百般可怕的传言,家装环保是业主从修饰一起始就关注的话题。关于很多业主而言,现在依然处于修饰基础完成的形态了,怎么样加快室内空气净化、节减污染是这个阶段的紧要课题。但面临商场上林林总总的空气净化产物,和宣扬能吸附甲醛的神奇绿植,很多人犹豫了:到底哪一个更有用?专家表现,开窗透风最有用,在慎重采用空气净化产物的同时,还得关注精确方式,防止发生二次污染。</p></div>
<div id="neirong4"><img src="images/6.gif" width="450" height="243" alt=""/></div>
<div id="yewei"><img src="images/7.gif" width="900" height="41" alt=""/></div>
</div>
</body>
</html>
2022年12月15日 16点12分 1
1