文档
按钮关键属性
html
open-type="contact"
功能按钮
html
<button class="button__open-type"
open-type="contact">
</button>
css样式
父元素需要设置为相对定位
css
.button__open-type {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: transparent;
padding: 0;
margin: 0;
}
.button__open-type::after {
border: none;
}