在uni.scss中写 @mixin 里面试用到了条件编译,运行项目时仍旧提示
nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下:
@mixin ellipsis {
/* #ifndef APP-NVUE */
white-space: nowrap;
/* #endif */
}
@mixin ellipsisTwo ($num) {
/* #ifndef APP-NVUE */
display: -webkit-box;
-webkit-line-clamp: $num;
-webkit-box-orient: vertical;
/* #endif */
}
5 个回复
丢了蜡笔的小新
我也遇到了
3***@qq.com
请问下大佬nvue下面的CSS支持@media的写法吗
DCloud_uniCloud_WYQ
nvue不支持
2020-03-06 17:26
3***@qq.com
回复 DCloud_uniCloud_WYQ: 请问nvue页面,有什么方案可以优化ipad等大屏设备 显示rpx单位导致内容文字过大的方案吗?
2020-03-06 17:35
卡卡LL
回复 3***@qq.com: 同问,有什么方案不
2020-04-14 16:01
DCloud_uniCloud_WYQ
测试未复现,可以提供这个页面的代码吗
丢了蜡笔的小新
我的报的是这种错,为什么报错的都是uni自身的组件
17:05:23.066 nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下:
17:05:23.066 ERROR: Selector
body
is not supported. Weex only support single-classname selector at App.vue:117:05:23.070 ERROR: Selector
uni-view
is not supported. Weex only support single-classname selector at App.vue:117:05:23.071 ERROR: Selector
uni-scroll-view
is not supported. Weex only support single-classname selector at App.vue:117:05:23.076 ERROR: Selector
uni-swiper
is not supported. Weex only support single-classname selector at App.vue:117:05:23.076 ERROR: Selector
uni-button
is not supported. Weex only support single-classname selector at App.vue:117:05:23.081 ERROR: Selector
uni-input
is not supported. Weex only support single-classname selector at App.vue:117:05:23.081 ERROR: Selector
uni-textarea
is not supported. Weex only support single-classname selector at App.vue:117:05:23.085 ERROR: Selector
uni-label
is not supported. Weex only support single-classname selector at App.vue:117:05:23.090 ERROR: Selector
uni-navigator
is not supported. Weex only support single-classname selector at App.vue:117:05:23.091 ERROR: Selector
uni-image
is not supported. Weex only support single-classname selector at App.vue:117:05:23.096 WARNING:
box-sizing
is not a standard property name (may not be supported) at App.vue:117:05:23.101 ERROR: Selector
uni-image
is not supported. Weex only support single-classname selector at App.vue:117:05:23.105 WARNING:
vertical-align
is not a standard property name (may not be supported) at App.vue:1DCloud_uniCloud_WYQ
开个新帖子传一下你的项目,邀请一下我
2020-03-06 17:55
chenli
回复 DCloud_uniCloud_WYQ: 有个ios端热更新重启问题,邀请您了,麻烦您排查重现看看。帖子链接:https://ask.dcloud.net.cn/question/89966
2020-03-06 18:00
kevin98
我也报了你的这种问题,请问怎么解决,谢谢
2020-03-30 15:58
kevin98
请问解决了吗,我也遇到这个问题了
雨夜敬清秋 (作者)
新版解决了
2020-03-30 15:41
kevin98
回复 雨夜敬清秋: 请问一下这种怎么解决nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下:
15:49:54.029 ERROR: Selector
body
is not supported. Weex only support single-classname selector at App.vue:1415:49:54.030 ERROR: Selector
uni-view
is not supported. Weex only support single-classname selector at App.vue:2115:49:54.033 ERROR: Selector
uni-scroll-view
is not supported. Weex only support single-classname selector at App.vue:2115:49:54.033 ERROR: Selector
uni-swiper
is not supported. Weex only support single-classname selector at App.vue:2115:49:54.036 ERROR: Selector
uni-button
is not supported. Weex only support single-classname selector at App.vue:2115:49:54.037 ERROR: Selector
uni-input
is not supported. Weex only support single-classname selector at App.vue:2115:49:54.040 ERROR: Selector
uni-textarea
is not supported. Weex only support single-classname selector at App.vue:2115:49:54.044 ERROR: Selector
uni-label
is not supported. Weex only support single-classname selector at App.vue:2115:49:54.044 ERROR: Selector
uni-navigator
is not supported. Weex only support single-classname selector at App.vue:2115:49:54.048 ERROR: Selector
uni-image
is not supported. Weex only support single-classname selector at App.vue:2115:49:54.049 WARNING:
box-sizing
is not a standard property name (may not be supported) at App.vue:3015:49:54.053 ERROR: Selector
uni-image
is not supported. Weex only support single-classname selector at App.vue:4515:49:54.053 WARNING:
max-width
is not a standard property name (may not be supported) at App.vue:4615:49:54.057 WARNING:
display
is not a standard property name (may not be supported) at App.vue:472020-03-30 15:58
雨夜敬清秋 (作者)
回复 kevin98: 都说了不支持啊,就不能这么写呗,nvue都样式有很多需要注意都,看文档吧
2020-03-30 16:08