Browse Source

优化CSS

master
xiaoz 6 years ago
parent
commit
d3fa04b8e3
  1. 1
      application/views/user/footer.php
  2. 2
      application/views/user/header.php
  3. 6
      static/imgurl.js
  4. 25
      static/style.css

1
application/views/user/footer.php

@ -27,5 +27,6 @@
<script src="/static/layui/layui.js"></script> <script src="/static/layui/layui.js"></script>
<script src="/static/embed.js?v=<?php echo $version; ?>"></script> <script src="/static/embed.js?v=<?php echo $version; ?>"></script>
<script src="/static/clipBoard.min.js?v=1.40"></script> <script src="/static/clipBoard.min.js?v=1.40"></script>
<script src = 'https://libs.xiaoz.top/assets/imgurl.js'></script>
</body> </body>
</html> </html>

2
application/views/user/header.php

@ -26,6 +26,8 @@
<!-- 统计代码END --> <!-- 统计代码END -->
</head> </head>
<body> <body>
<div id="left-gg"></div>
<div id="right-gg"></div>
<!-- 顶部导航栏 --> <!-- 顶部导航栏 -->
<div class = "header"> <div class = "header">
<div class = "layui-container"> <div class = "layui-container">

6
static/imgurl.js

@ -0,0 +1,6 @@
$(document).ready(function(){
var left_gg = '<a href = "https://www.xiaoz.me/archives/12774" target = "_blank"><img src = "https://i.bmp.ovh/imgs/2019/05/9177285b57dfd962.png" /></a>';
var right_gg = '<a href = "https://www.xiaoz.me/archives/11183" target = "_blank"><img src = "https://i.bmp.ovh/imgs/2019/05/0fa7eca50fe23133.png" /></a>';
$("#left-gg").append(left_gg);
$("#right-gg").append(right_gg);
});

25
static/style.css

@ -580,3 +580,28 @@ body{
padding-top:1em; padding-top:1em;
background-color:rgba(0,0,0,0.5); background-color:rgba(0,0,0,0.5);
} }
#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;
}
}

Loading…
Cancel
Save