|
[多端开发]
avm button 在小程序端无法去除样式
[复制链接]
在 css 里面已经清除了 button 的边框宽度,但是在小程序端还是能展示出来,在 app 端及 H5 端就没这毛病
代码如下:
- <template>
- <view class="main">
- <button class="test">12123</button>
- </view>
- </template>
- <style>
- .test{
- border: 0;
- background-color: #fff;
- padding: 0;
- margin: 0;
- }
- .main {
- width: 100%;
- height: 100%;
- }
- .m-t-30 {
- width: 100%;
- margin-top: 30px;
- }
- </style>
- <script>
- export default {
- name: 'main',
- data() {
- return {
- show: false
- }
- },
- methods: {
- }
- }
- </script>
复制代码
|
|