微信小程序 button样式设置为图片的方法

微信小程序 button样式设置为图片的方法

 background-image

background-size与background-repeat与border:none;是button必须的

<view style=" position: relative;">
	<button class="customer-service-btn" style="background-image: url('./static/kefu.png');" open-type="im"
				data-im-id="{{ imId }}" bindim="imCallback" binderror="onimError">
	</button>
</view>
 

.customer-service-btn {
	position: fixed;
	bottom: 50px;
	right: 10px;
	width: 30px;
	height: 30px; 
	border-radius: 80%; 
	background-repeat:no-repeat;
	background-size:30px 30px;
	border:none;
  }

抖音小程序泛流量变现 ,直播间挂载

相关推荐

  1. 去除程序button边框

    2024-07-20 15:22:03       64 阅读
  2. 程序修改checkbox和radio样式

    2024-07-20 15:22:03       38 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-20 15:22:03       52 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-20 15:22:03       54 阅读
  3. 在Django里面运行非项目文件

    2024-07-20 15:22:03       45 阅读
  4. Python语言-面向对象

    2024-07-20 15:22:03       55 阅读

热门阅读

  1. C语言(7.4)

    2024-07-20 15:22:03       17 阅读
  2. 怎么降低美国服务器硬盘故障率?

    2024-07-20 15:22:03       18 阅读
  3. 智能听诊器:居家宠物健康管理新助手

    2024-07-20 15:22:03       13 阅读
  4. Springboo3中使用虚线程

    2024-07-20 15:22:03       17 阅读
  5. C#面:MVC中的TempData\ViewBag\ViewData区别?

    2024-07-20 15:22:03       18 阅读
  6. Linux下载网络文档

    2024-07-20 15:22:03       15 阅读