From 04e2322cb10483a2c80222e78a593e8a92c22d89 Mon Sep 17 00:00:00 2001 From: wlh Date: Tue, 9 Dec 2014 00:11:24 +0800 Subject: [PATCH] add t --- t/css/main.css | 17 ++- t/html/index.html | 35 +++-- t/html/view/book_list.html | 2 +- t/html/view/footer_search.html | 6 + t/html/view/header_search.html | 8 ++ t/lib/BookController.js | 16 +++ t/lib/bookService.js | 31 +++++ t/lib/index.js | 225 ++++++++++++++++++++++++++------- t/lib/main.js | 45 +++++++ t/lib/menuController.js | 14 ++ t/lib/searchController.js | 12 ++ 11 files changed, 340 insertions(+), 71 deletions(-) create mode 100644 t/html/view/footer_search.html create mode 100644 t/html/view/header_search.html create mode 100644 t/lib/BookController.js create mode 100644 t/lib/bookService.js create mode 100644 t/lib/main.js create mode 100644 t/lib/menuController.js create mode 100644 t/lib/searchController.js diff --git a/t/css/main.css b/t/css/main.css index 212a8af..aee1447 100644 --- a/t/css/main.css +++ b/t/css/main.css @@ -17,8 +17,20 @@ a{ color: #525252; } +header{ + position:fixed; + z-index:20; + height:65px; + top:0; + left: 0; + right:0; + background-color:#FAFBFB; + border-bottom:1px solid #CCCCCC; +} + header div:nth-child(1){ position: absolute; + top:10px; left:3px; right: 60px; height:40px; @@ -26,7 +38,7 @@ header div:nth-child(1){ #search_input{ padding-left: 5px; - height:40px; + height:36px; width: 100%; border:1px solid #DDDDDD; outline:none; @@ -37,13 +49,14 @@ header div:nth-child(1){ header div:nth-child(2){ position: absolute; + top:10px; right:3px; width:50px; height:40px; } #search_btn{ width:50px; - height:40px; + height:36px; line-height:45px; text-align:center; background-color:#0091FF; diff --git a/t/html/index.html b/t/html/index.html index 2cbcb0d..7636334 100644 --- a/t/html/index.html +++ b/t/html/index.html @@ -3,34 +3,29 @@ - 天天爱搜索 + 测试Angular -
-
- -
-
- -
-
- +
- -