求html 右侧固定悬浮拨打电话按钮

img

就是用position: fixed;定位啊
你题目的解答代码如下:(如有帮助,望采纳!谢谢! 点击我这个回答右上方的【采纳】按钮)

<style type="text/css">
#pac {
    position: fixed;
    top: 200px;
    right: 0px;
    width: 64px;
    height: 64px;
}
</style>

<div id="pac">
    <img src="XXX.png" width="64" height="64" border="0" alt="">
</div>

这个就是js的一个悬浮特效,类似的代码有很多的,只要下载源码对其进行简单的修改就可以达到自己想要的,参考文章如下

https://www.a5xiazai.com/texiao/147161.html

https://www.a5xiazai.com/texiao/kefu/

如有帮助,请采纳一下,谢谢了


<a href="tel:xxxx" class="btn">xxxx</a>
<style>
.btn{
    width: 50px;
    height: 50px;
   position: fixed;
    bottom: 80px;
    right: 20px;
}
</style>