帖子
帖子
用户
博客
课程
显示全部楼层
286
帖子
2
勋章
7万+
Y币

[多端开发] avm button 在小程序端无法去除样式

[复制链接]
发表于 2021-9-8 16:33:04
在 css 里面已经清除了 button 的边框宽度,但是在小程序端还是能展示出来,在 app 端及 H5 端就没这毛病

代码如下:
  1. <template>
  2.         <view class="main">
  3.                         <button class="test">12123</button>
  4.         </view>
  5. </template>
  6. <style>
  7. .test{
  8.         border: 0;
  9.         background-color: #fff;
  10.         padding: 0;
  11.         margin: 0;
  12. }
  13. .main {
  14.         width: 100%;
  15.         height: 100%;
  16. }
  17. .m-t-30 {
  18.         width: 100%;
  19.         margin-top: 30px;
  20. }
  21. </style>
  22. <script>

  23. export default {
  24.         name: 'main',
  25.         data() {
  26.                 return {
  27.                         show: false
  28.                 }
  29.         },
  30.         methods: {

  31.         }
  32. }
  33. </script>
复制代码

380
帖子
4
勋章
6
Y币
已反馈给相关技术
您需要登录后才可以回帖 登录

本版积分规则