<code class="html"><div class="tips"> xxxxx </div></code>
<code class="css">.tips{ position:fixed; display:block; bottom:0; left:0; height:100px; width:100%; background:#ccc; color:#fff; z-index:999; }</code>
Use fixed positioning
HTML:
<code><div class="nologin"> 这个是内容 </div></code>
css
<code>.nologin{ position:fixed; bottom:0; left:0; height:100px; width:100%; background:#eee; color:#333; z-index:999; display:none }</code>
Then hide and listen for scroll events. When the scroll is larger than the position you want, the prompt will be displayed, otherwise it will be hidden