yaka
或者以下代码试试,我没用过,之前保存的你可以尝试一下
<!-- WhatsApp Floating Button -->
<a href="https://wa.me/YOUR_PHONE_NUMBER" class="whatsapp-float" target="_blank">
<img src="https://yourwebsite.com/path-to-whatsapp-icon.png" alt="WhatsApp" />
</a>
<style>
.whatsapp-float {
position: fixed;
width: 60px;
height: 60px;
bottom: 40px;
right: 40px;
background-color: #25d366;
color: #FFF;
border-radius: 50px;
text-align: center;
font-size: 30px;
box-shadow: 2px 2px 3px #999;
z-index: 1000;
}
.whatsapp-float img {
margin-top: 16px;
width: 60%;
}
</style>