<!DOCTYPE html> <html> <head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>欢迎页</title><meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"><link rel="stylesheet" href="css/bootstrap.min.css"><style >*{margin:0;padding:0}html, body {width: 100%;height: 100%;margin: 0;padding: 0;}</style> </head> <body><div style="background: #F2F2F2;width:100%;height: 1000px;padding:30px;"><div class="row"><div class="col-md-9"><div class="row"><div class="col-md-4"><div style="background: #fff;width:100%;height: 100px;border-radius:5px;padding: 0px 15px 15px 0px;"></div></div><div class="col-md-4"><div style="background: #fff;width:100%;height: 100px;border-radius:5px;padding: 0px 15px 15px 15px;"></div></div><div class="col-md-4"><div style="background: #fff;width:100%;height: 100px;border-radius:5px;padding: 0px 0px 15px 15px;"></div></div></div><div class="row"><div class="col-md-12"><div style="background: #fff;width:100%;height:700px;border-radius:5px;margin: 30px 0px 15px 0px;"></div></div></div></div><div class="col-md-3"><div class="row"><div class="col-md-12"><div style="background: #fff;width:100%;height:400px;border-radius:5px;padding: 0px 0px 15px 15px;"></div></div></div><div class="row"><div class="col-md-12"><div style="background: #fff;width:100%;height:400px;border-radius:5px;margin: 30px 15px 15px 0px;"></div></div></div></div></div></div> </body> <script src="js/jquery.min.js"></script> <script src="js/openTab.js"></script> <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script> <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-gl/echarts-gl.min.js"></script> <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-stat/ecStat.min.js"></script> <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/dataTool.min.js"></script> <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/simplex.js"></script> <script type="text/javascript"></script> </html>
*******************************************不用bootstrap很麻烦****************************************************************************
<!DOCTYPE html> <html> <head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>欢迎页</title><meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"><link rel="stylesheet" href="css/bootstrap.min.css"><style >*{margin:0;padding:0}html, body {width: 100%;height: 100%;margin: 0;padding: 0;}</style> </head> <body> <div class="panel panel-default" ><div style="background: #F2F2F2;width:100%;height: 1000px; "><div style=" width:69.5%;height: 1000px;display: inline-block; "><div style=" width:100%;height: 200px;display: inline-block;"><div style="background: white;width:32%;height: 100px;display: inline-block; margin:50px 5px 20px 5px;border-radius:5px"><div style=" width:29%;height: 100px; position: relative; display: inline-block; "><img style="width:50px;height:50px;position: absolute;top:50%;left:50%;margin-top:-25px;margin-left: -25px ;" src="img/a1.jpg"></div><div style=" width:68%;height: 70px; position: relative; display: inline-block; "><div style=" width:100%;height: 98px; position: absolute;top:50%;left:50%;margin-top:-50px;margin-left: -79px ;display: inline-block; "><p style="font-size:15px;color: #656865;">今日用户上线人数</p><br><span style="font-size:25px;color: #66CC00;"> 109</span><span style="font-size:15px;color: grey;">数量</span></div></div></div><div style="background: white;width:32%;height: 100px;display: inline-block; margin:50px 5px 20px 5px;border-radius:5px"><div style=" width:29%;height: 100px; position: relative; display: inline-block; "><img style="width:50px;height:50px;position: absolute;top:50%;left:50%;margin-top:-25px;margin-left: -25px ;" src="img/a1.jpg"></div><div style=" width:68%;height: 80px; position: relative; display: inline-block; "><div style=" width:100%;height: 98px; position: absolute;top:50%;left:50%;margin-top:-50px;margin-left: -79px ;display: inline-block; "><p style="font-size:15px;color: #656865;">今日新发帖子数</p><br><span style="font-size:25px;color: red;">40</span><span style="font-size:15px;color: grey;">数量</span></div></div></div><div style="background: white;width:32%;height: 100px;display: inline-block; margin:50px 5px 20px 5px;border-radius:5px"><div style=" width:29%;height: 100px; position: relative; display: inline-block; "><img style="width:50px;height:50px;position: absolute;top:50%;left:50%;margin-top:-25px;margin-left: -25px ;" src="img/a1.jpg"></div><div style=" width:68%;height: 80px; position: relative; display: inline-block; "><div style=" width:100%;height: 98px; position: absolute;top:50%;left:50%;margin-top:-50px;margin-left: -79px ;display: inline-block; "><p style="font-size:15px;color: #656865;">今日互动用户量</p><br><span style="font-size:25px;color: red;">200</span><span style="font-size:15px;color: grey;">数量</span></div></div></div></div><div id="container_maqun" style="background: white;width:100%;height: 800px;display: inline-block; "></div></div><div style="background: #F2F2F2;width:30%;height: 960px;display: inline-block;margin-top:40px; float: right"><div style="background:white;width:90%;height: 379px;display: inline-block;margin:10px 0 0 40px;border-radius:5px;"><p style="font-size:20px;text-align: center;margin-top:20px;">互动方式占比</p><div id="container" style="height: 100%;"></div></div><div style="background: white;width:90%;height: 509px;display: inline-block;margin:0px 0 0 40px; border-radius:5px;"><p style="font-size:20px;text-align: center;margin-top:20px;">互动方式占比</p><div id="container_pie" style="height: 100%;"></div></div></div></div><!--<div class="panel-heading">了解BootDo</div> --><!-- <div style="padding: 10px 0 20px 10px;">--><!-- <h3> 项目介绍</h3>--><!-- <ul>--><!-- <li>面向学习型的开源框架,简洁高效,减少过渡封装,展现技术本质</li>--><!-- <li>Springboot作为基础框架,使用mybatis作为持久层框架</li>--><!-- <li>使用官方推荐的thymeleaf做为模板引擎,shiro作为安全框架,主流技术,“一网打尽”</li>--><!-- <li>极简配置,一键前后台代码生成</li>--><!-- </ul>--><!-- <h3> 获取源码</h3>--><!-- <ul>--><!-- <li>Github地址:<a href="https://github.com/lcg0124/bootdo.git"--><!-- th:href="@{https://github.com/lcg0124/bootdo.git}" target="_blank">https://github.com/lcg0124/bootdo.git</a>--><!-- </li>--><!-- <li>Oschina地址:<a href="https://gitee.com/lcg0124/bootdo.git" target="_blank">https://gitee.com/lcg0124/bootdo.git</a>--><!-- </li>--><!-- </ul>--><!-- <h3> 官方QQ群</h3>--><!-- <ul>--><!-- <li>点击链接加入群聊【BootDo交流群】:<a href="https://jq.qq.com/?_wv=1027&k=5EYXfiZ">669039323</a></li>--><!-- <li>点击链接加入群聊【BootDo交流二群】:<a href="https://jq.qq.com/?_wv=1027&k=5M659N4">614726589</a></li>--><!-- <li>点击链接加入群聊【BootDo交流三群】:<a href="https://jq.qq.com/?_wv=1027&k=5tE3A9O">600801035</a></li>--><!-- <li>点击链接加入群聊【CloudDo交流群】:<a href="https://jq.qq.com/?_wv=1027&k=5Zk12Xl">719741533</a></li>--><!-- </ul>--><!-- <button class="btn" οnclick="openPage('http://bootdo.com','bootdo.com')">访问bootdo官网(新打开tab页事例)</button>--></div> </div> </body> <script src="js/jquery.min.js"></script> <script src="js/openTab.js"></script> <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script> <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-gl/echarts-gl.min.js"></script> <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-stat/ecStat.min.js"></script> <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/dataTool.min.js"></script> <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/simplex.js"></script> <script type="text/javascript">var dom = document.getElementById("container");var myChart = echarts.init(dom);var app = {};option = null;option = {tooltip : {trigger: 'item',formatter: "{a} <br/>{b} : {c} ({d}%)"},series : [{name:'面积模式',type:'pie',radius : [10, 90],center : ['50%', '40%'],roseType : 'area',data:[{value:30, name:'点赞'},{value:20, name:'浏览'},{value:15, name:'收藏'},{value:25, name:'其他'},{value:10, name:'评论'}]}]};;if (option && typeof option === "object") {myChart.setOption(option, true);} </script><script type="text/javascript">var dom = document.getElementById("container_maqun");var myChart = echarts.init(dom);var app = {};option = null;function randomData() {var value = 0;$.ajax({type : "GET",url : "http://localhost/wo/protal/getCount",async : false,error : function(request) {alert("Connection error");},success : function(data) {value = data;}});now = new Date(+now + oneSec);return {name: now.toString(),value: [now.getTime(),value]}}var data = [];var now = +new Date();now = new Date(+now - 1000*1000);var oneSec = 1000;for (var i = 0; i < 1000; i++) {now = new Date(+now + oneSec);data.push([now.getTime(),0]);}option = {title: {text: '动态数据 + 时间坐标轴'},tooltip: {trigger: 'axis',formatter: function (params) {params = params[0];var date = new Date(params.name);return date.getDate() + '/' + (date.getMonth() + 1) + '/' + date.getFullYear() + ' : ' + params.value[1];},axisPointer: {animation: false}},xAxis: {type: 'time',splitLine: {show: false}},yAxis: {type: 'value',boundaryGap: [0, '100%'],splitLine: {show: false}},series: [{name: '模拟数据',type: 'line',showSymbol: false,hoverAnimation: false,data: data}]};setInterval(function () {for (var i = 0; i < 1; i++) {data.shift();data.push(randomData());}myChart.setOption({series: [{data: data}]});}, 1000);;if (option && typeof option === "object") {myChart.setOption(option, true);} </script><script type="text/javascript">var dom_pie = document.getElementById("container_pie");var myChart_pie = echarts.init(dom_pie);var option_pie = null;var pieData = [{name: '技术',value: 35},{name: '工会11',value: 20},{name: '生活',value: 45}];option_pie = {tooltip : {trigger: 'item',formatter: "{a} <br/>{b} : {c} ({d}%)"},series : [{name: '姓名',type: 'pie',radius : '55%',center: ['50%', '30%'],data: pieData,itemStyle: {emphasis: {shadowBlur: 10,shadowOffsetX: 0,shadowColor: 'rgba(0, 0, 0, 0.5)'}}}]};if (option_pie && typeof option_pie === "object") {myChart_pie.setOption(option_pie, true);} </script> </html>