收藏
回答

怎样去除意见反馈按钮的默认样式?

小程序提供的组件 button 里的open-type="feebback"可以直接调用官方提供的功能,但是怎么去除按钮的默认样式啊。

我想让“意见反馈”的文字位于页面的左端,可是怎样都居中。。。

wxml代码:

<view class="item">

<button open-type="feedback" class="item-button">

    <view>

        <view class="button-title">

意见反馈

        </view>

    </view>    

</button>

<view class="detail2"><text> ></text></view>

</view>

wxss代码:

.item {

  display: flex;

  flex-direction: row;

}

.item-button{

  background-color: #ffffff;

  display:flex;

  flex-direction:row;

  height: 50px;

  align-items: center;

  text-decoration:none;

  border: none;

  border-radius: 0;

}

.item-button::after {

  border: none;

  border-radius: 0;

}

.button-title{

  padding-top: 15px;

  padding-bottom: 15px;

  padding-left: 15px;

  font-size: 15px;

}



回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签