<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>页面布局</title>
<link href="css/mui.min.css" rel="stylesheet" />
<style>
.ul div{list-style: none;color: #FFFFFF; text-align: center;background-color: #97C8FF;box-sizing: border-box;padding:2px 30px;border-radius: 18px;}
.ul{display: flex;box-sizing: border-box;justify-content: space-around;margin-top: 5px;}
.leftDiv{border: 1px solid red;}
.rightDiv{border: 1px solid red;}
.contentDiv{display: flex;box-sizing: border-box;margin-top: 10px;}
.segmentedControls div{font-size: 12px;text-align: center;padding: 5px;border-bottom: 1px solid #929292;height: 36px;line-height: 26px;}
.rightDivTitle{display: flex;box-sizing: border-box;padding: 2px 1px;}
.rightDivTitle div{height: 30px;width: 80%;}
.rightDivTitle button{height: 26px;padding: 0px;margin: 0px;width: 20%;}
button{font-size: 12px;color: #FFF4F5;background-color: #2E91FF;}
.mui-search .mui-placeholder {font-size: 13px;line-height: 26px;}
input[type="search"] {height: 26px;line-height: 26px;padding: 0px 12px;margin: 0px;}
table th{font-size: 13px;font-weight: 600;}
table td{font-size: 13px;text-align: center;}
table tr{border-bottom: 1px solid red;padding: 0px 0px;height: 37px;}
.colorBlue{color: #007aff;}
.mui-scroll-wrapper{height: 400px;position: relative !important;}
</style>
<body>
<header class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">页面布局</h1>
</header>
<div class="mui-content">
<div class="ul">
<div>item1</div>
<div>item2</div>
<div>item3</div>
<div>item4</div>
</div>
<div class="contentDiv">
<div class="mui-col-xs-3 leftDiv">
<div id="segmentedControls" class="segmentedControls">
<div class="mui-control-item colorBlue">保障及时率</div>
<div class="mui-control-item">保障及时率</div>
<div class="mui-control-item">保障及时率</div>
<div class="mui-control-item">保障及时率</div>
<div class="mui-control-item">保障及时率</div>
</div>
</div>
<div class="mui-col-xs-9 rightDiv mui-scroll-wrapper" id="muiscrollwrapper">
<div>
<div class="rightDivTitle">
<div class="mui-input-row mui-search">
<input type="search" class="mui-input-clear" placeholder="请输入内容可见">
</div>
<button>搜索</button>
</div>
<div>
<table width="100%" class="table">
<tr>
<th>人员姓名</th>
<th>保障及时率</th>
<th>市级排名</th>
<th>区县排名</th>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>张先生</td>
<td>89%</td>
<td>1</td>
<td>1</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
<script src="./js/mui.min.js"></script>
<script src="./js/jquery-1.11.1.js"></script>
<script type="text/javascript" charset="utf-8">
mui.init();
$('.segmentedControls div').click(function() {
$(this).addClass("colorBlue").siblings().removeClass("colorBlue");
console.log(12);
})
mui('#muiscrollwrapper').scroll({
indicators: true //是否显示滚动条
});
mui("muiscrollwrapper").pullRefresh({
up: {
contentrefresh: '正在加载...',
callback: pullupRefresh1
},
})
function pullupRefresh1() {
console.log("上拉加载1");
}
</script>
</html>