Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to deal with sub components and pictures in CSS #174

Open
Bigerfe opened this issue Dec 19, 2019 · 1 comment
Open

How to deal with sub components and pictures in CSS #174

Bigerfe opened this issue Dec 19, 2019 · 1 comment

Comments

@Bigerfe
Copy link

Bigerfe commented Dec 19, 2019

//t.css

  .img{
          background: url('./img/c.png') left center no-repeat;
          width: 200px;
          height: 50px;
    } 
and
child component 
import  'a.css'
function Child(){

}

import Child from './child.js';
function Main(){
 return <Child />
}

image

@xblj
Copy link

xblj commented Mar 2, 2020

need css-loader

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants