huwhois 3 gadi atpakaļ
vecāks
revīzija
58e895e44a
3 mainītis faili ar 15 papildinājumiem un 6 dzēšanām
  1. 1 1
      application/App.php
  2. 5 4
      public/html/index.html
  3. 9 1
      public/static/css/index.css

+ 1 - 1
application/App.php

@ -20,7 +20,7 @@ class App{
20 20
    public static function getAction()
21 21
    {
22 22
        $pathinfo = "";
23
        if ($_SERVER['PATH_INFO']) {
23
        if (isset($_SERVER['PATH_INFO'])) {
24 24
            $pathinfo = $_SERVER['PATH_INFO'];
25 25
        } else {
26 26
            $pathinfo = strpos($_SERVER['REQUEST_URI'], '?') ? strstr($_SERVER['REQUEST_URI'], '?', true) : $_SERVER['REQUEST_URI'];

+ 5 - 4
public/html/index.html

@ -31,6 +31,10 @@
31 31
        <span class="logo">
32 32
            <a href="/index">HUWIKI</a>
33 33
        </span>
34
        <!-- Button trigger modal -->
35
        <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" onclick="edit()">
36
            <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> 编辑
37
        </button>
34 38
    </header>
35 39
    <aside>
36 40
        <div class="nav" style="z-index: 99;">
@ -60,10 +64,7 @@
60 64
    <!--article标签中就是我们编写的文本内容-->
61 65
    <article>
62 66
        <div class="top">
63
            <!-- Button trigger modal -->
64
            <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" onclick="edit()">
65
                <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> 编辑
66
            </button>
67
67 68
        </div>
68 69
        <div class="content">
69 70
            <?php

+ 9 - 1
public/static/css/index.css

@ -3,14 +3,22 @@ header {
3 3
    line-height: 60px;
4 4
    box-sizing: border-box;
5 5
    position: fixed;
6
    width: 100%;
6 7
}
7 8
8
header span {
9
header span.logo {
9 10
    margin-right: 40px;
10 11
    color: black;
11 12
    font-size: 20px;
13
    width: 17%;
14
    display: inline-block;
12 15
}
13 16
17
header button {
18
    margin-left: 40px;
19
}
20
21
14 22
aside {
15 23
    width:17%;
16 24
    top: 60px;