利用HBuilder制作网页模板

编程知识 行业动态 更新时间:2024-06-13 00:19:03
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/myweb.css" />
	</head>
	<body>
		<div class="header">
			<div class="logo fl"></div>
			<div class="nav-lan fl">
				<div class="language fr">选择语言</div>
				<div class="nav fr">导航</div>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
		<div class="center">
			<div class="photo fl"></div>
			<div class="notice fl">
				<div class="news"></div>
				<div class="notices"></div>
				<div class="mation"></div>
			</div>
			<div class="hotspot fl"></div>
			<div class="option fr"></div>
			<div class="clear"></div>
		</div>
		<div class="footer"></div>
	</body>
</html>

附css代码:

* {
	padding: 0;
	margin: 0;
}

.fl {
	float: left;
}

.fr {
	float: right;
}

.clear {
	clear: both;
}

.container {
	margin: 0 auto;
}

.header {
	width: 970px;
	height: 103px;
	/*background-color: green;*/
	margin: 0 auto;
}

.header .logo {
	width: 277px;
	height: 103px;
	background-color: red;
}

.header .nav-lan {
	width: 679px;
	height: 103px;
	margin-left: 14px;
	/*background-color: green;*/
}

.header .nav-lan .language {
	width: 137px;
	height: 49px;
	background-color: green;
}

.header .nav-lan .nav {
	width: 679px;
	height: 46px;
	background-color: green;
	margin-top: 8px;
}

.center {
	width: 970px;
	height: 435px;
	/* background-color: yellow; */
	margin: 0 auto;
	margin-top: 10px;
	margin-bottom: 10px;
}

.center .photo {
	width: 310px;
	height: 435px;
	background-color: yellow;
	margin-bottom: 10px;
}

.center .notice {
	width: 450px;
	height: 400px;
	/* background-color: blue; */
	margin-left: 10px;
}

.center .notice .news {
	width: 450px;
	height: 240px;
	background-color: dodgerblue;
	margin-bottom: 10px;
}

.center .notice .notices {
	width: 450px;
	height: 110px;
	background-color: dodgerblue;
	margin-bottom: 10px;
}

.center .notice .mation {
	width: 450px;
	height: 30px;
	background-color: dodgerblue;
}

.center .hotspot {
	width: 190px;
	height: 400px;
	background-color: purple;
	margin-left: 10px;
}

.center .option {
	width: 650px;
	height: 25px;
	background-color: green;
	margin-top: 10px;
}

.footer {
	width: 970px;
	height: 35px;
	background-color: blue;
	margin: 0 auto;
}

更多推荐

利用HBuilder制作网页模板

本文发布于:2023-03-27 18:18:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/2dbd1f57ef1a556adadc531ea4a3fca6.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网页模板   HBuilder

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!