Commit 989939f730114d7af5dcacf7780d9f03ad66bcfc

Authored by liuqimichale
1 parent 81d76fc7

首页 main

css/libCss/common.css
... ... @@ -3,7 +3,7 @@ body{
3 3 background-color: #eef1f5;
4 4 }
5 5 body,html{
6   - overflow: hidden;
  6 + /*overflow: hidden;*/
7 7 width: 100%;
8 8 height: 100%;
9 9 }
... ... @@ -12,11 +12,25 @@ ul,li,ol{
12 12 margin-bottom: 0!important;
13 13 list-style: none;
14 14 }
  15 +.display-none{
  16 + display: none;
  17 +}
  18 +.float-left{
  19 + float: left;
  20 +}
  21 +.float-right{
  22 + float: right;
  23 +}
  24 +.marginright32{
  25 + margin-right: 32px;
  26 +}
15 27 /*头部--------------------------------------------------*/
16 28 header{
  29 + min-width: 1400px;
17 30 height: 80px;
18 31 width: 100%;
19 32 background-color: #fff;
  33 + box-shadow: 0 1px 10px 0 rgba(50,50,50,.2);
20 34 }
21 35 .java-logo{
22 36 height: 80px;
... ... @@ -41,19 +55,86 @@ header{
41 55 }
42 56 /*左侧栏--------------------------------------------------*/
43 57 nav{
44   - position: fixed;
45 58 width: 200px;
46 59 height: 100%;
47   - left: 0;
48   - top:0;
49   - padding-top: 80px;
50 60 }
51 61 .nav-ul{
  62 + box-shadow: 1px 0 10px 0 rgba(50,50,50,.2);
52 63 background-color: #fff;
53 64 height: 100%;
54 65 }
  66 +.nav-ul li{
  67 + height: 120px;
  68 + line-height: 120px;
  69 + text-align: center;
  70 + color: #1f2b3d;
  71 + font-size: 20px;
  72 +}
  73 +.nav-ul li:nth-of-type(1){
  74 + box-shadow: 0 1px 10px 0 rgba(50,50,50,.2);
  75 + background-color: #f9f9f9;
  76 +}
  77 +.nav-ul li:nth-of-type(2){
  78 + background-color: #fff;
  79 +}
  80 +.nav-ul li:nth-of-type(3){
  81 + background-color: #f9f9f9;
  82 +}
  83 +.nav-ul li:nth-of-type(4){
  84 + background-color: #fff;
  85 +}
  86 +.nav-ul li:hover{
  87 + background-color: rgba(38,190,150,.1);
  88 +}
  89 +.nav-ul li.visitActive{
  90 + background-color: #2abb9b;
  91 + color: #fff;
  92 +}
55 93 /*内容--------------------------------------------------*/
56 94 section{
57   - width: 100%;
58   - padding-left: 200px;
  95 +
  96 + overflow-x: auto;
  97 + overflow-y: auto;
  98 + height: calc(100% - 80px);
  99 + height: -webkit-calc(100% - 80px);
  100 + height: -moz-calc(100% - 80px);
  101 + width:calc(100% - 200px);
  102 + width:-webkit-calc(100% - 200px);
  103 + width:-moz-calc(100% - 200px);
  104 +}
  105 +.section-wrap{
  106 + padding: 18px 32px 0;
  107 +}
  108 +.link-div{
  109 + margin-left: -10px;
  110 +}
  111 +.link-div span{
  112 + width: 176px;
  113 + height: 57px;
  114 + display: inline-block;
  115 + text-align: center;
  116 + line-height: 42px;
  117 + font-size: 18px;
  118 + color: #fff;
  119 + cursor: pointer;
  120 +}
  121 +.link-div span:nth-of-type(1){
  122 + background:url("../../image/link-div-1.png");
  123 +}
  124 +.link-div span:nth-of-type(2){
  125 + background:url("../../image/link-div-2.png");
  126 +}
  127 +.link-con-left{
  128 + padding-right: 32px;
  129 + width: 734px;
  130 + box-sizing: content-box;
  131 +}
  132 +.link-con-left-wrap{
  133 + width: 351px;
  134 + height: 245px;
  135 + background-color: #fff;
  136 + float: left;
  137 +}
  138 +.link-con-right{
  139 + width: 336px;
59 140 }
60 141 \ No newline at end of file
... ...
image/link-div-1.png 0 → 100644

2.05 KB

image/link-div-2.png 0 → 100644

2.25 KB

index.html
... ... @@ -18,23 +18,50 @@
18 18 </head>
19 19 <body>
20 20 <header>
21   -
22   - <div class="row">
23   - <div class="col-md-8 col-xs-8 col-sm-8 java-logo">
  21 + <div class="float-left java-logo">
24 22 <!--<span></span>-->
25 23 <span class="java-title"></span>
26 24 </div>
27   - <div class="col-md-4 col-xs-4 col-sm-4">
28   - <span class="java-loginout"></span>
  25 + <div class="java-loginout float-right">
  26 + <!--<span class="java-loginout"></span>-->
29 27 </div>
30   - </div>
31 28 </header>
32   -<nav>
  29 +<nav class="float-left">
33 30 <ul class="nav-ul">
34   - <li>1</li>
  31 + <li class="visitActive">
  32 + 任你停
  33 + </li>
  34 + <li>
  35 + PDA
  36 + </li>
  37 + <li>
  38 + 微信服务号
  39 + </li>
  40 + <li>
  41 + 第三方
  42 + </li>
35 43 </ul>
36 44 </nav>
37   -<section>section</section>
  45 +<section class="float-left">
  46 + <div class="section-wrap">
  47 + <div class="link-div">
  48 + <span>总体概况</span>
  49 + <span>API 列表</span>
  50 + </div>
  51 + <div class="link-con">
  52 + <div class="link-con-1">
  53 + <div class="link-con-left float-left">
  54 + <div class="link-con-left-wrap marginright32"></div>
  55 + <div class="link-con-left-wrap"></div>
  56 + <div class="clearfix"></div>
  57 + <div></div>
  58 + </div>
  59 + <div class="link-con-right float-left">2</div>
  60 + </div>
  61 + <div class="link-con-1 display-none">display-none</div>
  62 + </div>
  63 + </div>
  64 +</section>
38 65  
39 66 <script type="text/javascript" src="js/libJs/jquery.min.js"></script>
40 67 <script type="text/javascript" src="js/libJs/bootstrap.min.js"></script>
... ...