File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -980,4 +980,20 @@ a{color: #333}
980
980
.ucenter-content li .col-xs-3 {padding-right : 0 }
981
981
}
982
982
983
- .cate-intro {border : 1px dashed # ccc ;margin : 0 0 15px 0 ;padding : 5px 10px ;box-sizing : border-box;color : # 787878 }
983
+ .cate-intro {border : 1px dashed # ccc ;margin : 0 0 15px 0 ;padding : 5px 10px ;box-sizing : border-box;color : # 787878 }
984
+
985
+ .backtop {
986
+ position : fixed;
987
+ bottom : 50px ;
988
+ right : 50px ;
989
+ z-index : 9999 ;
990
+ width : 45px ;
991
+ height : 45px ;
992
+ text-align : center;
993
+ border : 1px solid # ddd ;
994
+ font-size : 20px ;
995
+ line-height : 40px ;
996
+ border-radius : 4px ;
997
+ cursor : pointer;
998
+ }
999
+ .backtop : hover {background-color : # dddddd ;color : # 10af88 ;}
Original file line number Diff line number Diff line change @@ -98,6 +98,9 @@ <h3 class="panel-title">
98
98
99
99
</ div >
100
100
</ div >
101
+ < div class ="backtop tooltips " title ="回到顶部 ">
102
+ < i class ="fa fa-arrow-up "> </ i >
103
+ </ div >
101
104
{{template "widgets/footer.html" .}}
102
105
< script >
103
106
'use strict' ;
@@ -144,6 +147,10 @@ <h3 class="panel-title">
144
147
$ ( window ) . scroll ( function ( ) {
145
148
fixed ( )
146
149
} )
150
+
151
+ $ ( ".backtop" ) . click ( function ( ) {
152
+ $ ( window ) . scrollTop ( 0 )
153
+ } ) ;
147
154
} )
148
155
</ script >
149
156
</ body >
You can’t perform that action at this time.
0 commit comments