论坛
标题:
网页制作流程 代码(科技网页)
[打印本页]
作者:
cyndi3321
时间:
2015-5-15 11:21
标题:
网页制作流程 代码(科技网页)
body {
font-family: "宋体";
font-size: 18px;
margin: 0px auto;
}
#box {
height: 1079px;
width: 1003px;
margin: 0px auto
}
#box_1 {
height: 73px;
width: 1003px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}
#box_2 {
height: 360px;
width: 1003px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}
#box_3 {
float: left;
height: 543px;
width: 182px;
}
#box_4 {
height: 543px;
width: 820px;
float: left;
}
#box_5 {
height: 39px;
width: 1003px;
float: left;
}
#box_6 {
float: left;
height: 64px;
width: 1003px;
}
</style>
</head>
<body>
<div id="box">
<div id="box_1"><img src="images/01_01.gif" width="1003" height="73" /></div>
<div id="box_2"><img src="images/01_02.gif" width="1003" height="360" /></div>
<div id="box_3"><img src="images/01_03.gif" width="182" height="543" /></div>
<div id="box_4"><img src="images/01_04.gif" width="821" height="543" /></div>
<div id="box_5"><img src="images/01_05.gif" width="1003" height="39" /></div>
<div id="box_6"><img src="images/01_06.gif" width="1003" height="64" /></div>
</div>
</body>
</html>
复制代码
作者:
yuanxi52028
时间:
2015-5-15 16:11
应该还有个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>无标题文档</title>
</head>
<body>
</body>
</html>
一定要声明是W3C标准的 还有编码设置是utf-8
如果没有这个,网页很可能会出现乱码 还有接触到更多的JS CSS的时候会出问题
能否看看你切出来的视图!
作者:
cyndi3321
时间:
2015-5-15 16:42
yuanxi52028 发表于 2015-5-15 16:11
应该还有个html头
好好~
欢迎光临 论坛 (http://bbs.qinxue.com/)
Powered by Discuz! X3.1