微信小程序 vant-Weapp 种折叠面板 custom-class 如何设置呀?请教大神......

2019-06-16 18:34:33 +08:00
 xmge

想改下默认配置

8791 次点击
所在节点    微信
5 条回复
agzou
2019-06-17 12:53:55 +08:00
```css

<style lang="scss" scoped>
.tab {
background-color: #fafafc;

> div {
margin: 10px 0;
}
}
</style>
<style class="wxss">
page {
height: 100%;
background-color: #fafafc !important;
}
</style>
<style>
.custom-alone {
top: 0 !important;
right: 10px !important;
}
</style>
```
xmge
2019-06-17 13:20:09 +08:00
@agzou 谢谢了,有一点想问下,是直接在 css 文件中写

```
.custom-class {
background-color:red;
....
...
}
```

这样就行吗,我试了好像不行 啊
agzou
2019-06-17 13:27:05 +08:00
我用的是 mpvue,你直接在 wxss 文件写
.custom-class{
background-color:red;
}
应该是可以的
agzou
2019-06-17 13:27:30 +08:00
@xmge 我用的是 mpvue,你直接在 wxss 文件写
.custom-class{
background-color:red;
}
应该是可以的
xmge
2019-06-17 14:00:57 +08:00
@agzou 嗯恩,好的,我晚上回去再试一下,谢谢啦

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/574491

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX