Provides a variety of official and user-released code examples. For code reference, you are welcome to exchange and learn to send a short piece of code to top and display the QR code.
CSS style implementation
. Left-float {position: fixed; right: 40px; bottom: 60px; width: 40px; height: 140px; z-index: 10000000 ;}
. Left-float. qr-code ,. left-float. gototop {width: 40px; height: 40px; padding: 10px; margin-bottom: 5px; background: # FFFFFF; text-align: center; line-height: 40px; font-size: 40px; cursor: pointer; color: # 428BCA; font-family: ""; font-weight: bold ;}
. Left-float. gototop {display: none ;}
. Left-float. qr-code-box {width: 250px; height: 250px; position: absolute; left:-250px; top:-100px; overflow: hidden; display: none ;}
. Left-float. qr-code-box img {width: 250px; height: 250px ;}
Html code implementation
※
Bytes
Javascript code implementation