<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>选座</title>
<link rel="stylesheet" href="./CSS/reset.css">
<link rel="stylesheet" href="./CSS/public.css">
<link rel="stylesheet" href="./CSS/xuanzuo.css">
<script src="./JS/auto-size.js"></script>
</head>
<body>
<div class="top"></div>
<!-- 顶部 -->
<header class="login_reg">
<div>
<a href="javascript:history.go(-1)"><img src="./IMG/fanhuijiantou.gif" alt="返回箭头"></a>
<p>太平洋影城(新城市店)</p>
</div>
<i></i>
</header>
<article>
<header>
<!-- 上面 -->
<div>
<!-- 左边 -->
<div>
<p>太平洋影城(新城市店)</p>
<div>
<span>今天10月11日</span>
<span>17:30</span>
<span>国语3D</span>
</div>
</div>
<!-- 右边 -->
<span>换一场</span>
</div>
<!-- 下面 -->
<div>
<p><i></i>可选</p>
<p><i></i>已售</p>
<p><i></i>已选</p>
<p><i></i>情侣座</p>
</div>
</header>
<!-- 灰色部分 -->
<div>
<!-- 顶部 -->
<div><img src="./IMG/yingmu.jpg" alt="XXX"></div>
<!-- 中部 -->
<div>
<!-- 数字 -->
<div>
<span>1</span>
<span>2</span>
<span>3</span>
<span>4</span>
<span></span>
<span>5</span>
<span>6</span>
<span>7</span>
<span>8</span>
<span>9</span>
<span>10</span>
<span>11</span>
</div>
<!-- 座位 -->
<div>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
</div>
<!-- 推荐座位 -->
<div>
<p>推荐座位</p>
<div>
<span>1人</span>
<span>2人</span>
<span>3人</span>
<span>4人</span>
<span>5人</span>
</div>
</div>
<!-- 一次最多选择5个座位 -->
<div>
<p>一次最多选择5个座位</p>
<p>请先选座</p>
</div>
</article>
<div class="bottom"></div>
</body>
</html>
@mixin f_ce_ce {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
@mixin f_be_ce {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
@mixin f_col_be_ce {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
body {
.login_reg {
>i {
display: inline-block;
width: 0.75rem;
height: 0.60rem;
background-image: url("../IMG/fenxiang.jpg");
background-size: 0.75rem 0.60rem;
background-position: 0rem 0rem;
}
}
>article {
background-color: white;
margin-top: 2.3rem;
font-size: 0.4rem;
margin-bottom: 1.7rem;
>header {
padding: 0 0.45rem;
// 上面
>div:nth-of-type(1) {
@include f_be_ce;
border-bottom: 2px solid #e4e4e4;
// 左边字
>div:nth-of-type(1) {
padding: 0.3rem 0;
>p:nth-of-type(1) {
color: black;
font-size: 0.52rem;
}
>div {
margin-top: 0.2rem;
font-size: 0.34rem;
>span {
margin-right: 0.25rem;
color: #656565;
}
>span:nth-of-type(3) {
color: #e23f35;
}
}
}
// 右边换一场
>span {
font-size: 0.34rem;
color: #656565;
padding: 0.1rem 0.2rem;
border-radius: 0.48rem;
border: 2px solid #e4e4e4;
}
}
// 下面
>div:nth-of-type(2) {
@include f_be_ce;
padding: 0.25rem 0;
>p {
@include f_ce_ce;
}
>p>i {
color: #636363;
width: 0.51rem;
height: 0.46rem;
background-image: url("../IMG/icon100.png");
background-size: 5.6rem 5.1rem;
margin-right: 0.25rem;
}
>p:nth-of-type(1)>i {
background-position: -1.29rem -4.57rem;
}
>p:nth-of-type(2)>i {
background-position: -1.79rem -4.57rem;
}
>p:nth-of-type(3)>i {
background-position: -2.29rem -4.57rem;
}
>p:nth-of-type(4)>i {
width: 1rem;
height: 0.5rem;
background-position: -2.76rem -4.48rem;
}
}
}
// 灰色部分
>div:nth-of-type(1) {
height: 8.65rem;
box-sizing: border-box;
background-color: #f0f0f0;
// 顶部
>div:nth-of-type(1) {
width: 6.32rem;
margin: 0 auto;
img {
width: 6.33rem;
height: 0.61rem;
}
}
// 中部
>div:nth-of-type(2) {
display: flex;
margin-top: 0.45rem;
// 数字
>div:nth-of-type(1) {
height: 7.2rem;
box-sizing: border-box;
font-size: 0.24rem;
margin-left: 0.3rem;
margin-right: 0.3rem;
@include f_col_be_ce;
background-color: #a8a8a8;
border-radius: 0.45rem;
color: white;
padding: 0.3rem 0;
padding-top: 0.4rem;
>span {
line-height: 1;
height: 0.43rem;
display: inline-block;
padding: 0 0.05rem;
}
>span:nth-of-type(5) {
margin-top: 0.1rem;
height: 0.1rem;
}
}
// 座位
>div:nth-of-type(2) {
margin-top: 0.3rem;
>ul {
@include f_ce_ce;
>li {
display: inline-block;
width: 0.53rem;
height: 0.43rem;
background-image: url('../IMG/icon100.png');
background-size: 5.6rem 5.1rem;
background-position: -3.75rem -4.55rem;
margin-right: 0.1rem;
margin-bottom: 0.15rem;
}
}
>ul:nth-of-type(5) {
height: 0.3rem;
visibility: hidden;
}
>ul:nth-of-type(1) {
>li:nth-of-type(1) {
visibility: hidden;
}
}
>ul:nth-of-type(n+6) {
>li:nth-of-type(11),>li:nth-of-type(10) {
visibility: hidden;
}
}
>ul:nth-last-of-type(1) {
>li:nth-of-type(11),>li:nth-of-type(10) {
visibility: visible;
}
}
}
}
}
// 推荐座位
>div:nth-of-type(2) {
width: 9.9rem;
margin: 0 auto;
margin-top: 0.27rem;
font-size: 0.38rem;
>div {
@include f_be_ce;
padding: 0.27rem 0;
border-bottom: 2px solid #e4e4e4;
>span {
padding: 0.15rem 0.6rem;
border: 1px solid transparent;
box-sizing: border-box;
border-radius: 20px;
border: 2px solid #cacaca;
&:hover {
color: white;
font-weight: bold;
background-color: #ef4238;
}
}
}
}
>div:nth-of-type(3) {
@include f_be_ce;
font-size: 0.44rem;
padding: 0.22rem 0.45rem;
>p:nth-of-type(1) {
color: #616161;
}
>p:nth-of-type(2) {
border: 1px solid transparent;
border-radius: 15px;
@include f_ce_ce;
width: 4.5rem;
height: 1.2rem;
color: white;
font-weight: bold;
background-color: #f5ddb0;
}
}
}
}