- 链接地址:https://blog.csdn.net/caperxi/article/details/106921649
- 链接标题:react组件引用less样式失效问题记录_react import styles from './index.less' 拿不到-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:2537
文章浏览阅读1w次,点赞9次,收藏11次。在react项目中使用了less来预处理css,但是在项目中却遇到了引用样式不生效的问题,现记录如下:页面代码:import React, { Component } from 'react'import { connect } from 'react-redux'import './index.less';class PriceProtection extends Component { render() { return ( <div classN_react import styles from './index.less' 拿不到
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除