<div class="sideBar"> <div> <div class="tips">Online Customer Service</div> <ul class="list"> <li>QQ:1846492969</li> <li>QQ:1846492969</li> <li>QQ:1846492969</li> <li>QQ:1846492969</li> <li>QQ:1846492969</li> </ul> </div> </div> .sideBar { position:fixed; right:-182px; top:50px; background-color:#ffffff; border:#eea236 solid 1px; transition:right 0.5s; border:solid 1px red; } .sideBar:hover { right:0; } .sideBar>div { position:relative; } .sideBar .tips { position:absolute; height:120px; line-height:25px; background-color:#eea236; width:40px; left:-40px; top:50px; text-align:center; box-sizing:border-box; padding:10px 10px; border-top-left-radius:5px; border-bottom-left-radius:5px; font-weight:bold; color:#ffffff; } .sideBar .list { padding:0; list-style:none; width:180px; margin:0; } .sideBar .list>li { padding:15px; border-top:#eea236 dashed 1px; } .sideBar .list>li:hover { background-color:#f0ad4e; color:#ffffff; } .sideBar .list>li:first-child { border-top:none; } Summarize The above is the CSS method for achieving the floating customer service effect introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! |
<<: Have you carefully understood Tags How it is defined How to use
>>: How to use Font Awesome 5 in Vue development projects
Key Takeaways: 1. Mastering CSS3 3D animation 2. ...
1. Top-level usage 1. Install cnpm npm i -g cnpm ...
When I first came into contact with HTML, I alway...
Preface: Partitioning is a table design pattern. ...
Table of contents Hidden, descending, and functio...
When installing nginx, mysql, tomcat and other se...
This article describes how to install mysql5.6 us...
1 Introduction to HTML 1.1 First experience with ...
Using CI to build docker images for release has g...
Mysql left join is invalid and how to use it When...
This article shares the specific code of js to im...
Table of contents 1. Overview 2. Application Exam...
1. Phenomenon In the early morning, an index was ...
Table of contents 1. for loop: basic and simple 2...
Project Purpose Migrate the data in MySQL 5.5.53 ...