diff options
author | chai <chaifix@163.com> | 2022-03-17 23:49:04 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-17 23:49:04 +0800 |
commit | cecb6f1a2e6e7f43601ec4aeac481817f9979422 (patch) | |
tree | 02a2fa2452f0f692aa26117a30f1d5b8028cb922 /res | |
parent | 90483f6eb389f041e0dbd0fca8bb766edbc85910 (diff) |
* paginate
Diffstat (limited to 'res')
-rw-r--r-- | res/main.js | 12 | ||||
-rw-r--r-- | res/styles.css | 29 |
2 files changed, 35 insertions, 6 deletions
diff --git a/res/main.js b/res/main.js index 543cd16..2f42d19 100644 --- a/res/main.js +++ b/res/main.js @@ -75,13 +75,13 @@ function changeMusicListWidth () { music_list.style.width = Math.floor( outer_width / 120) * 120; } -window.onload = function() { - changeMusicListWidth(); -} +// window.onload = function() { +// changeMusicListWidth(); +// } -window.onresize = function(){ - changeMusicListWidth(); -} +// window.onresize = function(){ +// changeMusicListWidth(); +// } // time diff --git a/res/styles.css b/res/styles.css index 92fdd2d..e7e8c08 100644 --- a/res/styles.css +++ b/res/styles.css @@ -151,6 +151,7 @@ body{ #music_player_container { max-width: 95%; margin: 0 auto; + margin-top: 10px; } #music_player_container .music_cover{ @@ -195,4 +196,32 @@ body{ font-weight:bold; } +#paginate { + width: 100%; +} + +#paginate a { + color:rgb(0, 0, 0); + text-decoration-line: none; + display: block; + width: 30px; + height: 30px; + text-align: center; + line-height: 30px; + float:left; + margin-right: 5px; +} + +#paginate a:hover{ + color:#fff; + background-color: #000; + text-decoration-line: none; + display: block; +} +#paginate .current{ + color:#fff; + background-color: #000; + text-decoration-line: none; + display: block; +}
\ No newline at end of file |