<button class="operation-list" type="button" open-type="share">分享</button>
做小程序时,给文章底部添加分享、收藏等功能,分享用的官方自带方法(onShareAppMessage),必须使用button标签,并添加open-type="share",我给button直接添加 border:none; 没反应,后来使用伪元素才去除了边框,如下
.operation-list::after{
border: none;
}
<button class="operation-list" type="button" open-type="share">分享</button>
做小程序时,给文章底部添加分享、收藏等功能,分享用的官方自带方法(onShareAppMessage),必须使用button标签,并添加open-type="share",我给button直接添加 border:none; 没反应,后来使用伪元素才去除了边框,如下
.operation-list::after{
border: none;
}
就是直接来使用这个组件,说下使用当中的注意点。 属性 !> 注意点:默认情况下小程序中的按钮是块级元素 s
微信小程序之button和image组件的基本使用,持续更新【微信小程序】系列
【小程序】微信小程序button组件无法调整宽度的解决方法(已解决)
本篇介绍小程序中表单组件 button
很多公司都在做小程序,现在主流小程序有不少:微信小程序/头条小程序/百度小程序
否 按...
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M