把引用去掉,配置的类型改成
config: Taro.Config = {
navigationBarTitleText: '首页'
}
把引用去掉,配置的类型改成
config: Taro.Config = {
navigationBarTitleText: '首页'
}
autoprefixer 自动帮你补全了样式,去掉了无用样式
/*! autoprefixer: ignore next */
/*! autoprefixer: off */
这样的写法是在告诉插件,不要对这一行进行处理,或者是从这里开始关掉插件
@jayleco_m 在 Flex 弹性布局H5和小程序端显示不一致 中说:
.goods-item {
height: 250px;
margin-bottom: 10px;.goods-cover {
height: 100%;
}.goods-info {
display: flex;
flex-direction: row;
flex-wrap: wrap;
padding-left: 20px;
height: 100%;.goods-title { width: 100%; height: 85px; line-height: 43px; white-space: pre-line; word-wrap: break-word; overflow: hidden; word-break: break-all; } .goods-tags { width: 100%; padding: 10px 0; .at-tag { margin: 0 10px; } } .goods-price { display: flex; flex-wrap: nowrap; align-items: flex-end; width: 100%; line-height: 40px; color: #e22d24; .mark { font-size: 24px; } .num { font-size: 36px; } } .line { width: 100%; border-bottom: 1px solid #f4f4f4; }
}
}
看起来你的代码木有给全,并不能复现问题哦。
猜测是列表上的样式写的有问题,可以查一下 flex-direction
和相关属性。