_ Web front-end project practice 02_ins Nordic fleshy plant owner of this website (pure HTML + CSS static page)

As we all know, learning to write front-end look is not equal to "I never learned," just so happened that I have left out here practicing right hand material, pure HTML + CSS to achieve, is simple enough, good-looking than the old page material on some books, interested then try it together.

First on full effect diagram:

ins wind site
Abstinence elegant white ash hit, is not it kind of is the fire of the Nordic ins feeling the windHere Insert Picture Description

HTML code:

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" href="css/mycss.css" />
	</head>

	<body>
		<div class="body">
			<header>
				<span class="span1">彼岸の花</span>
				<span class="span2">&nbsp;偶安一隅&nbsp;静静生活</span>
				<hr class="hr" />
			</header>
			<div class="content">
				<div class="content_top">商品分类&nbsp;></div>
				<img src="img/banner.jpg" alt="pic1" class="img01" />
				<div class="content_wenzi_1">我喜欢一些花,静静地开放,从不声张。小小的花朵,有着异样的芬芳...</div>
				<div class="content_wenzi_2">I love flowers, quietly open, never quiet. Little flowers, with the same fragrance...</div>
				<img src="img/bestseller1.png" alt="pic2" class="img02" />
				<img src="img/bestseller2.jpg" alt="pic3" class="img03" />
				<div class="content_end">
					<div>&nbsp;&nbsp;&nbsp;多肉植物是指植物营养器官肥大的高等植物,通常具有根、茎、叶三种营养器官和</div>
					<div>花、果实、种子三种繁殖器官。在园艺上,又称肉质植物或多肉花卉,但以多肉植物</div>
					<div>这个名称最为常用。</div>
					<div>&nbsp;&nbsp;&nbsp;<span class="text_under">全世界共有多肉植物一万余种</span>。它们绝大多数属于高等植物(绝大多数是被子植</div>
					<div>物)。植物上隶属几十个科。个别专家认为有67个科中含有多肉植物,但大多数专家</div>
					<div>认为只有50余科。</div>
				</div>
			</div>
			<footer>
				<div class="nav">
					<span>品质保障&nbsp;|</span>
					<span>七天无理由退换货&nbsp;|</span>
					<span>特色服务体验&nbsp;|</span>
					<span>帮助中心&nbsp;</span>
				</div>
				<div class="footer_dianzhang">
					<img src="img/tuxiang.gif" alt="pic" class="img04" />
					<div class="footer_wenzi">
						<div class="wenzi_1">店长:Michael_唐僧</div>
						<i><div class="wenzi_2">飞舞的花儿像一首诗?写着秋天的心事?带着思念?轻轻?飘向大地?</div></i>
						<i><div class="wenzi_3">也许这只是秋季的一场游戏?</div></i>
					</div>
				</div>
			</footer>
		</div>
	</body>

</html>

CSS part of the code:

body {
	background-color: #ededed;
}

.body {
	width: 980px;
	margin: 0 auto;
}

header {
	text-align: center;
}

header span {
	font-family: "微软雅黑";
	color: #a5a5a5;
}

header .span1 {
	font-size: 24px;
}

header .span2 {
	font-size: 10px;
}

.hr {
	margin-top: 20px;
	color: #A5A5A5;
}

.content_top {
	font-family: "微软雅黑";
	color: #a5a5a5;
}

.img01 {
	margin-top: 10px;
}

.content_wenzi_1 {
	font-family: "楷体";
	color: #a5a5a5;
	width: 520px;
	margin: 0 auto;
}

.content_wenzi_2 {
	font-family: "Calibri";
	color: #a5a5a5;
	width: 600px;
	margin: 0 auto;
	font-size: 18px;
}

.img02 {
	width: 600px;
	margin-left: 190px;
	margin-top: 20px;
}

.img03 {
	width: 600px;
	margin-left: 190px;
	margin-top: 20px;
}

.content_end {
	width: 600px;
	margin: 0 auto;
}

.content_end div {
	font-family: "楷体";
	color: #a5a5a5;
	margin-top: 10px;
}

.nav {
	width: 410px;
	margin: 0 auto;
	margin-top: 20px;
	font-family: "微软雅黑";
	color: #a5a5a5;
	font-weight: 700;
}

.footer_dianzhang {
	width: 600px;
	margin: 0 auto;
	margin-top: 20px;
}

.footer_wenzi {
	font-family: "微软雅黑";
	color: #a5a5a5;
}

.footer_wenzi .wenzi_1 {
	position: relative;
	top: -92px;
	left: 130px;
}

.footer_wenzi .wenzi_2 {
	font-family: "calisto mt";
	position: relative;
	top: -78px;
	left: 130px;
	font-size: 10px;
}

.footer_wenzi .wenzi_3 {
	font-family: "calisto mt";
	position: relative;
	top: -78px;
	left: 130px;
	font-size: 14px;
}

Well, it's all a complete picture of the code and other material, we are following this link, the link: https: //pan.baidu.com/s/1ETIUqKzqFeSgm2p6irgaAQ
extraction code: 2ng7, if necessary, to download .

Published 10 original articles · won praise 9 · views 985

Guess you like

Origin blog.csdn.net/xia_yanbing/article/details/103282081