Blogger Information
Blog 27
fans 0
comment 0
visits 22407
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
利用定位来布局优酷
不乖的博客
Original
546 people have browsed it
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>优酷-这世界很酷</title>
		<link rel="icon" type="image/ico" href="static/image/1.ico">
		<style>
			*{
				margin: 0;
				padding: 0;
			}
			li{
				list-style: none;
				float: left;
			}
			a{
				text-decoration: none;
				color: white;
				font-size: 16px;
			}
			.box{
				width: 1740px;
				margin: auto;
			}
			.content{
				width: 100%;
				margin-top: 20px;
			}
			.content_title{
				line-height: 70px;
			}
			.content_show img{
				width: 240px;
				height: 360px;
			}
			.mr{
				margin-right: 10px;
			}
			small{
				font-size: 12px;
				color: #999;
			}
			.left{
				float: left;
			}
			.ml{
				margin-left: 20px;
			}
			.clear{
				clear: both;
			}
			.tv_show img{
				height: 334px;
				width: 490px;
			}
			.tab img{
				width: 240px;
				height: 135px;
			}
			.tab li{
				margin-left: 10px;
			}
			
			
			.header{
				width: 100%;
				height: 520px;
				background: rgb(232,232,232);
			}
			.oImg{
				width: 1664px;
				height: 520px;
				margin: auto;
				position: relative;
			}
			.alpha{
				width:1664px;
				height: 520px;
				background: url(static/image/bg1.png) no-repeat;
				position: absolute;
				left: 0;
				top:0;
				z-index: 99;
			}
			.top{
				width: 100%;
				height: 64px;
				position: absolute;
				top:0;
				left: 0;
			}
			.top img{
				position: absolute;
				top:20px;
				left: 128px;
				z-index: 999;
			}
			.top form {
				width:370px ;
				height: 38px;
				position: absolute;
				left: 685px;
				top:20px;
				z-index: 999;
			}
			.top form input{
				width:350px ;
				height: 38px;
				border-radius: 20px;
				border:none;
				outline: none;
				padding-left: 20px;
			}
			.top form button{
				width: 80px;
				height: 38px;
				border: none;
				background: #B30702;
				color: #FFEABF;
				position: absolute;
				top:0;
				right: 0;
				border-top-right-radius: 20px;
				border-bottom-right-radius: 20px;
				outline: none;
			}
			.top ul{
				width: 250px;
				height: 38px;
				position: absolute;
				right: 128px;
				top:20px;
				z-index: 999;
			}
			.top ul li{
				width: 50px;
				float: left;
				cursor: pointer;
			}
			.top ul li:hover{
				color: #2FB3FF;
			}
		</style>
	</head>
	<body>
		<div class="header">
			<div class="oImg">
				<img src="static/image/bg.jpg">
				<div class="alpha"></div>
			</div>
			<div class="top">
				<img src="static/image/logo.png" />
				<form action="" method="">
					<input type="text" />
					<button>全网搜</button>
				</form>
				<ul>
					<li>VIP</li>
					<li>订阅</li>
					<li>记录</li>
					<li>上传</li>
					<li>客户端</li>
				</ul>
			</div>
		</div>
		<div class="box">
			<div class="content">
				<div class="content_title">
					<h2>正在热播</h2>
				</div>
				<ul class="content_show">
					<li class="mr">
						<a href="#">
							<img src="static/image/a.jpg" /><br/>
							<span>瞰中国:宁夏</span><br/>
						</a>
						<small>低调的宁夏 美了四季</small>
					</li>
					<li  class="mr">
						<a href="#">
							<img src="static/image/b.jpg" /><br/>
							<span>瞰中国:宁夏</span><br/>
						</a>
						<small>低调的宁夏 美了四季</small>
					</li>
					<li  class="mr">
						<a href="#">
							<img src="static/image/c.jpg" /><br/>
							<span>瞰中国:宁夏</span><br/>
						</a>
						<small>低调的宁夏 美了四季</small>
					</li>
					<li  class="mr">
						<a href="#">
							<img src="static/image/d.jpg" /><br/>
							<span>瞰中国:宁夏</span><br/>
						</a>
						<small>低调的宁夏 美了四季</small>
					</li>
					<li  class="mr">
						<a href="#">
							<img src="static/image/e.jpg" /><br/>
							<span>瞰中国:宁夏</span><br/>
						</a>
						<small>低调的宁夏 美了四季</small>
					</li>
					<li  class="mr">
						<a href="#">
							<img src="static/image/f.jpg" /><br/>
							<span>瞰中国:宁夏</span><br/>
						</a>
						<small>低调的宁夏 美了四季</small>
					</li>
					<li>
						<a href="#">
							<img src="static/image/g.jpg" /><br/>
							<span>瞰中国:宁夏</span><br/>
						</a>
						<small>低调的宁夏 美了四季</small>
					</li>
				</ul>
				<!--<div class="clear"></div>-->
			</div>
			<div class="content" style="overflow: hidden;">
				<div class="content_title" style="overflow: hidden;">
					<h2 class="left">剧集</h2>
					<h2 class="left ml">></h2>
					<ul class="left">
						<li class="ml">最新</li>
						<li class="ml">大陆剧</li>
						<li class="ml">日韩剧</li>
						<li class="ml">港台剧</li>
						<li class="ml">英美剧</li>
					</ul>
				</div>
				<!--<div class="clear"></div>-->
				<div class="tv_show">
					<img src="static/image/tv.jpg" class="left">
					<ul class="tab left">
						<li>
							<a href="#">
								<img src="static/image/tv1.jpg"><br/>
								<span>瞰中国:宁夏</span><br/>
							</a>
							<small>低调的宁夏 美了四季</small>
						</li>
						<li>
							<a href="#">
								<img src="static/image/tv2.jpg"><br/>
								<span>瞰中国:宁夏</span><br/>
							</a>
							<small>低调的宁夏 美了四季</small>
						</li>
						<li>
							<a href="#">
								<img src="static/image/tv3.jpg"><br/>
								<span>瞰中国:宁夏</span><br/>
							</a>
							<small>低调的宁夏 美了四季</small>
						</li>
						<li>
							<a href="#">
								<img src="static/image/tv4.jpg"><br/>
								<span>瞰中国:宁夏</span><br/>
							</a>
							<small>低调的宁夏 美了四季</small>
						</li>
						<li>
							<a href="#">
								<img src="static/image/tv5.jpg"><br/>
								<span>瞰中国:宁夏</span><br/>
							</a>
							<small>低调的宁夏 美了四季</small>
						</li>
					</ul>
					<ul class="tab left">
						<li>
							<a href="#">
								<img src="static/image/tv1.jpg"><br/>
								<span>瞰中国:宁夏</span><br/>
							</a>
							<small>低调的宁夏 美了四季</small>
						</li>
						<li>
							<a href="#">
								<img src="static/image/tv2.jpg"><br/>
								<span>瞰中国:宁夏</span><br/>
							</a>
							<small>低调的宁夏 美了四季</small>
						</li>
						<li>
							<a href="#">
								<img src="static/image/tv3.jpg"><br/>
								<span>瞰中国:宁夏</span><br/>
							</a>
							<small>低调的宁夏 美了四季</small>
						</li>
						<li>
							<a href="#">
								<img src="static/image/tv4.jpg"><br/>
								<span>瞰中国:宁夏</span><br/>
							</a>
							<small>低调的宁夏 美了四季</small>
						</li>
						<li>
							<a href="#">
								<img src="static/image/tv5.jpg"><br/>
								<span>瞰中国:宁夏</span><br/>
							</a>
							<small>低调的宁夏 美了四季</small>
						</li>
					</ul>
					<!--<div class="clear"></div>-->
				</div>
			</div>
		</div>
	</body>
</html>


Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post