From d3fa04b8e3bf6c9eae109b7fb5d6c34818e1a219 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Thu, 30 May 2019 15:51:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96CSS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/user/footer.php | 1 + application/views/user/header.php | 2 ++ static/imgurl.js | 6 ++++++ static/style.css | 27 ++++++++++++++++++++++++++- 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 static/imgurl.js diff --git a/application/views/user/footer.php b/application/views/user/footer.php index 047f436..75e46cd 100644 --- a/application/views/user/footer.php +++ b/application/views/user/footer.php @@ -27,5 +27,6 @@ + \ No newline at end of file diff --git a/application/views/user/header.php b/application/views/user/header.php index 1c0a3ee..2c6d151 100644 --- a/application/views/user/header.php +++ b/application/views/user/header.php @@ -26,6 +26,8 @@ +
+
diff --git a/static/imgurl.js b/static/imgurl.js new file mode 100644 index 0000000..c738228 --- /dev/null +++ b/static/imgurl.js @@ -0,0 +1,6 @@ +$(document).ready(function(){ + var left_gg = ''; + var right_gg = ''; + $("#left-gg").append(left_gg); + $("#right-gg").append(right_gg); +}); \ No newline at end of file diff --git a/static/style.css b/static/style.css index e14e433..57270db 100644 --- a/static/style.css +++ b/static/style.css @@ -579,4 +579,29 @@ body{ padding-left:1em; padding-top:1em; background-color:rgba(0,0,0,0.5); -} \ No newline at end of file +} +#left-gg{ + position:fixed; + left:10px; + top:80px; + width:100%; + max-width: 120px; +} +#left-gg img{ + width:100%; + max-width: 120px; +} +#right-gg{ + position:fixed; + top:80px; + right:10px; +} +#right-gg img{ + width:100%; + max-width: 120px; +} +@media screen and (max-width: 1366px) { + #left-gg,#right-gg{ + display: none; + } +}