按钮的样式

<!DOCTYPE html>
<html>
<head>
	<title>市场</title>
	<meta charset="utf-8">
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
	<link rel="stylesheet" type="text/css" href="css/index.css">
</head>
<body>
	<div class="main-content">
		<div class="address-date">
			<span class="address">全国</span>
			<div class="date">
				<p class="quote-date">当前报价日期  <span class="today">2015-12-01 周二</span></p>		
			</div>
		</div>
		<div class="logo">
			
		</div>
		<div class="ticket-category">

		
			<ul class="ticket-header clearfix">
				<li><a href="javascript:;">纸票</a></li>
				<li class="active"><a href="javascript:;">电票</a></li>
				<li><a href="javascript:;">小纸票</a></li>
				<li><a href="javascript:;">小电票</a></li>
				<li><a href="javascript:;">商票</a></li>
			</ul>


			<div class="quotes clearfix">
				<ul class="quotes-header clearfix">
					<li class="org">机构</li>
					<li class="org-category">国股</li>
					<li class="org-category">商行</li>
					<li class="org-category">三农</li>
				</ul>
				<ul class="business-quotes-header clearfix hide">
					<li class="business-org">机构</li>
					<li class="business-org-category">国股</li>
					<li class="business-org-category">商行</li>
				</ul>
			</div>
			<div class="quotes-list paper-tickets hide">
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential exponential-up">3.45</li>
					<li class="quote-detail exponential ">--</li>
					<li class="quote-detail exponential ">3.78</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.45</li>
					<li class="quote-detail exponential exponential-down">3.67</li>
					<li class="quote-detail exponential exponential-up">3.78</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.53</li>
					<li class="quote-detail exponential exponential-down">3.66</li>
					<li class="quote-detail exponential exponential-up">1.00</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.45</li>
					<li class="quote-detail exponential exponential-down">3.67</li>
					<li class="quote-detail exponential exponential-up">3.78</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.45</li>
					<li class="quote-detail exponential exponential-down">3.67</li>
					<li class="quote-detail exponential exponential-up">3.78</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.53</li>
					<li class="quote-detail exponential exponential-down">3.66</li>
					<li class="quote-detail exponential exponential-up">1.00</li>
				</ul>
			</div>

			<div class="quotes-list ele-tickets">
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential exponential-up">3.45</li>
					<li class="quote-detail exponential ">--</li>
					<li class="quote-detail exponential ">3.78</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.45</li>
					<li class="quote-detail exponential exponential-down">3.67</li>
					<li class="quote-detail exponential exponential-up">3.78</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.53</li>
					<li class="quote-detail exponential exponential-down">3.66</li>
					<li class="quote-detail exponential exponential-up">1.00</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.45</li>
					<li class="quote-detail exponential exponential-down">3.67</li>
					<li class="quote-detail exponential exponential-up">3.78</li>
				</ul>

				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.45</li>
					<li class="quote-detail exponential exponential-down">3.67</li>
					<li class="quote-detail exponential exponential-up">3.78</li>
				</ul>
			</div>

			<div class="quotes-list little-paper-tickets hide">
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential exponential-up">3.45</li>
					<li class="quote-detail exponential ">--</li>
					<li class="quote-detail exponential ">3.78</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.53</li>
					<li class="quote-detail exponential exponential-down">3.66</li>
					<li class="quote-detail exponential exponential-up">1.00</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.45</li>
					<li class="quote-detail exponential exponential-down">3.67</li>
					<li class="quote-detail exponential exponential-up">3.78</li>
				</ul>
			</div>

			<div class="quotes-list little-ele-tickets hide">
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential exponential-up">3.45</li>
					<li class="quote-detail exponential ">--</li>
					<li class="quote-detail exponential ">3.78</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.45</li>
					<li class="quote-detail exponential exponential-down">3.67</li>
					<li class="quote-detail exponential exponential-up">3.78</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.45</li>
					<li class="quote-detail exponential exponential-down">3.67</li>
					<li class="quote-detail exponential exponential-up">3.78</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.45</li>
					<li class="quote-detail exponential exponential-down">3.67</li>
					<li class="quote-detail exponential exponential-up">3.78</li>
				</ul>
				<ul class="quotes-floor clearfix">
					<li class="quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="quote-detail exponential ">3.53</li>
					<li class="quote-detail exponential exponential-down">3.66</li>
					<li class="quote-detail exponential exponential-up">1.00</li>
				</ul>
			</div>

			<div class="quotes-list business-tickets hide">
				<ul class="quotes-floor clearfix">
					<li class="business-quote-detail">
						<p class="bank-name">江苏银行</p>
						<p class="branch-bank">上海普陀支行</p>
						<p class="stars"></p>
					</li>
					<li class="business-quote-detail exponential exponential-up">3.45</li>
					<li class="business-quote-detail exponential ">3.78</li>
				</ul>
			</div>
		</div>
		<!--ticket-category end-->
		<!--
		<div class="footer">
			<ul class="clearfix">
				<li><a href="javascript:;">关注</a></li>
				<li class="active"><a href="javascript:;">市场</a></li>
				<li><a href="javascript:;">资讯</a></li>
				<li><a href="javascript:;">我的</a></li>
			</ul>
		</div>
		-->
	</div>

	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/jquery.raty.min.js"></script>
	<script type="text/javascript">
		var PAPER_TICKET = "纸票";
		var ELE_TICKET = "电票";
		var LITTLE_PAPER_TICKET = "小纸票";
		var LITTLE_ELE_TICKET = "小电票";
		var BUSINESS_TICKET = "商票";

		$(".stars").raty({
			readOnly:  true,
			start:     2
		});

		//切换票类型
		$(".ticket-header li").click(function() {
			$(".ticket-header li").removeClass("active");
			$(this).addClass("active");
			var category = $(this).find("a").text();
			var currentTicket = "";
			switch(category) {
				case PAPER_TICKET:
					currentTicket = ".paper-tickets";
					break;
				case ELE_TICKET:
					currentTicket = ".ele-tickets";
					break;
				case LITTLE_PAPER_TICKET:
					currentTicket = ".little-paper-tickets";
					break;
				case LITTLE_ELE_TICKET:
					currentTicket = ".little-ele-tickets";
					break;
				case BUSINESS_TICKET:
					currentTicket = ".business-tickets";
					break;
			}
			$(".quotes-list").addClass("hide");
			$(currentTicket).removeClass("hide");
			if(currentTicket === ".business-tickets") {
				$(".quotes-header").addClass("hide");
				$(".business-quotes-header").removeClass("hide");
			} else {
				$(".quotes-header").removeClass("hide");
				$(".business-quotes-header").addClass("hide");
			}
		})

	</script>
</body>
</html>




.clearfix:after {
	content: "";
	height: 0;
	display: block;
	clear: both;
	zoom: 1;
}

.hide {
	display:none;
}

.exponential-up {
	color: green;
}

.exponential-down {
	color:red;
}

html, body {
	margin: 0;
	padding: 0;
	font-family: 'Microsoft YaHei', Helvetica, SimHei, Arial, Tahoma;
	font-size: 14px;
}

h1, h2, h3, h4, h5, h6, p, ul, li {
	margin: 0;
	padding: 0;
}

.main-content {
	width: 100%;
	margin: auto;
	position: relative;
}

.address-date {
	position: relative;
	background-color: #eeeeee;
	padding: 5px 0;
}

.quote-date {
	color: #999999;
}

.date {
	text-align: center;
}

.today {
	color: #ff9640;
}

.address {
	position: absolute;
	height: 19px;
	line-height: 19px;
	margin-left: 12px;
	color: #999999;
	cursor: pointer;
}

.logo {
	height: 60px;
}

.ticket-header {
	background: -webkit-gradient(linear,center top, center bottom,from(#ffc773), to(#ff9640));
	box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ticket-header li {
	list-style: none;
	float: left;
	width: 20%;
	text-align: center;
	height: 40px;
	line-height: 40px;
	color: #ffffff;
	border-left: 1px solid #ff9640;
	margin-left: -1px;
	border-top: 1px solid #ff9640;
	border-bottom: 1px solid #ff9640;
}

.ticket-header li:last-child {
	margin-right: -1px;
	border-right: 1px solid #ff9640;
}

.ticket-header li:hover a {
	
}

.ticket-header li a {
	text-decoration: none;
	display:block;
	color: #ffffff;
}

.ticket-header li.active a{
	background-color: #ffc773;
}

ul.quotes-header {
	width: 100%;
	background-color: #eeeeee;
}

ul.quotes-header li {
	list-style: none;
	float:left;
	text-align: center;
	height: 50px;
	line-height: 50px;
	color: #999999;
	font-weight: bold;
}

.quotes-header li.org {
	width:32%;
	padding-left: 4%;
	padding-right: 4%;
	text-align: left;
}

.org-category {
	width: 20%;
	cursor: pointer;
}

.quotes-floor {
	border-bottom: 1px solid #eeeeee;
	padding: 5px 0;
	cursor: pointer;
}

.quotes-floor li {
	list-style: none;
	float:left;
	text-align: center;
}

.quote-detail:first-child {
	width: 32%;
	text-align: left;
	padding-left: 4%;
	padding-right: 4%;
}

.quote-detail{
	width: 20%;
}

.exponential {
	height: 57px;
	line-height: 57px;
	font-size: 16px;
	font-weight: bold;
}

.bank-name {
	font-weight: bold;
	font-size: 16px;
}

.branch-bank {
	color: #999999;
}

.stars img {
	width: 10px;
}

/*商票*/
ul.business-quotes-header {
	width: 100%;
	background-color: #eeeeee;
}

ul.business-quotes-header li {
	list-style: none;
	float:left;
	text-align: center;
	height: 50px;
	line-height: 50px;
	color: #999999;
	font-weight: bold;
}

.business-quotes-header li.business-org {
	width:32%;
	padding-left: 4%;
	padding-right: 4%;
	text-align: left;
}

.business-org-category {
	width: 30%;
	cursor: pointer;
}

.business-quote-detail {
	width: 30%;
}

.business-quote-detail:first-child {
	width: 32%;
	padding-left: 4%;
	padding-right: 4%;
	text-align: left;
}

/*
.footer {
	position: fixed;
	bottom: 0;
	width: 398px;
	background-color: #ffffff;
	border: 1px solid #eeeeee;
}
}

.footer ul {
	list-style: none;
}

.footer ul li {
	float:left;
	width: 25%;
	text-align: center;
	height: 40px;
	line-height: 40px;
	list-style: none;
}

.footer ul li:hover {
	background-color: #eeeeee;
}

.footer ul li:hover a {
	color: #ff9640;
}

.footer ul li.active a{
	color: #ff9640;
}

.footer ul li a {
	text-decoration: none;
	display:block;
	color: #999999;
}
*/

自己仿制的按钮效果

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值