淘宝网选项卡(自用)

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			.taobao{
				width: 513px;
				height: 252px;
				background-color: pink;
				margin: 100px auto;
				position: relative;
				
			}
			.taobao a{
				width: 24px;
				height: 36px;
				display: block;
				position: absolute;
				top: 50%;
				margin-top:-18px;
			}
			.left{
				left: 0;
				background-color: green;
			}
			.right{
				right: 0;
				background-color: green;
			}
			li{
				list-style: none;
			}
			.taobao ul{
				background: rgba(255,255,255,0.3);
				width: 70px;
				height: 23px;
				position: absolute;
				bottom: 18px;
				left: 50%;/* 水平父容器的一半 */
				margin-left: -35px;
				border-radius: 12%;
			}
			.taobao ul li{
				width: 8px;
				height: 8px;
				background-color: #fff;
				float: left;
				margin: 3px;
				border-radius: 50%;
			}
			.taobao .current{
				background-color: #f40;
			}
		</style>
	</head>
	<body>
		<div class="taobao">
			<img src="c.png" />
			<a href="#" class="left"></a>
			<a href="#" class="right"></a>
			<ul>
				<li class="current"></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
			</ul>
		</div>
	</body>
</html>

 

上一篇:nrm 安装与使用


下一篇:JSON Web Token八步设计单点登录系统