Browse Source

优化CSS

master
xiaoz 5 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. 27
      static/style.css

1
application/views/user/footer.php

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

2
application/views/user/header.php

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

6
static/imgurl.js

@ -0,0 +1,6 @@ @@ -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);
});

27
static/style.css

@ -579,4 +579,29 @@ body{ @@ -579,4 +579,29 @@ body{
padding-left:1em;
padding-top:1em;
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