From 0ed02cf2c5ab64d2ca4c4e58a63013adf0dfaa11 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Thu, 9 Apr 2020 22:55:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=A5=97=E4=B8=8ACSS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/css/general.css | 67 +++++++++++++++++++++++ htdocs/css/here | 0 htdocs/edit.php | 67 ++++++++++++----------- htdocs/index.php | 121 +++++++++++++++++++++-------------------- 4 files changed, 164 insertions(+), 91 deletions(-) create mode 100644 htdocs/css/general.css delete mode 100644 htdocs/css/here diff --git a/htdocs/css/general.css b/htdocs/css/general.css new file mode 100644 index 0000000..24ca2c9 --- /dev/null +++ b/htdocs/css/general.css @@ -0,0 +1,67 @@ +.btn { + display: inline-block; + padding: 0.3em; + text-decoration: none; + + font-size: 0.95em; + font-family: none; + border: 1px black solid; + background: blue; + color: white; + + cursor: pointer; +} + +ul.func-btn li { + display: inline-block; +} + +.table-func ul li{ + display: inline-block; + padding: 0.5em; + +} +.table-func ul li a{ + text-decoration: none; +} + +.table-row-func li{ + display: inline-block; +} + + +html, body { + margin: 0; + padding: 0; + width: 100%; + height: 100%; +} + +body { + background: red; +} + +div#container { + margin: 0 auto; + padding: 1rem; + width: 960px; + height: 100%; + display: block; + + background: white; +} + +header h1{ + text-align: center; +} + +div#main { + margin-top: 2rem; +} + +.func-btn { + text-align: right; +} +.func-btn>ul li{ + display: inline; +} \ No newline at end of file diff --git a/htdocs/css/here b/htdocs/css/here deleted file mode 100644 index e69de29..0000000 diff --git a/htdocs/edit.php b/htdocs/edit.php index 59c42e7..b9ac254 100644 --- a/htdocs/edit.php +++ b/htdocs/edit.php @@ -25,41 +25,44 @@ else { + Document -
-

留言板 編輯

-
-
-
-
- '; - } - ?> -
    -
  • - -
  • -
  • - -
  • -
-
    -
  • -
  • -
-
-
+
+
+

留言板 編輯

+
+
+
+
+ '; + } + ?> +
    +
  • + +
  • +
  • + +
  • +
+
    +
  • +
  • +
+
+
+
\ No newline at end of file diff --git a/htdocs/index.php b/htdocs/index.php index 23f50c8..5254a63 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -17,74 +17,77 @@ $list = $db->getList($page, $list_max_count); + Document -
-

留言板

-
-
-
- -
-
- -
+
+
+

留言板

+
+
+
- 0) { - echo ' - - - - - - - - - - - '; - - foreach ($list as $key => $item) { +
+ +
+
    +
  • +
+
+ 0) { echo ' -
- - - - - +
idtitleupdated_ataction
'.$item['id'].''.$item['title'].''.$item['updated_at'].' - -
+ + + + + + + + + + '; + + foreach ($list as $key => $item) { + echo ' + + + + + + + '; + } + + echo ' + +
idtitleupdated_ataction
'.$item['id'].''.$item['title'].''.$item['updated_at'].' + +
'; } - - echo ' - - - '; - } - else { - echo '無資料'; - } - ?> -
- -
-
+ else { + echo '無資料'; + } + ?> +
+ +
+ +
\ No newline at end of file