uniapp button样式置空

  • 小程序转发,得用button,样式太丑了,
				<view class="one">
					<button data-name="shareBtn" open-type="share" hover-class="none">
						<image src="/static/index/carddetail/sendcard.png"></image>
						<view class="iconname">转发名片</view>
					</button>
				</view>
                                  button{// 这里我试了,用class还不行,只能用button
					position: relative;
					display: block;
					margin-left: auto;
					margin-right: auto;
					padding-left: 0px;
					padding-right: 0px;
					box-sizing: border-box;
					// font-size: 18px;
					text-align: center;
					text-decoration: none;
					// line-height: 1;
					line-height: 1.35;
					// border-radius: 5px;
					-webkit-tap-highlight-color: transparent;
					overflow: hidden;
					color: #000000;
					background-color: #fff;
					width: 100%;
					height: 100%;
				}
				button::after{
					border:none;
				}

posted @ 2023-04-26 20:28  盘思动  阅读(98)  评论(0编辑  收藏  举报