Open Trapa-Eureka opened 3 years ago
<Coverflow width={960} height={480} displayQuantityOfSide={2} navigation={false} enableHeading={false}> <div onClick={() => fn()} onKeyDown={() => fn()} role="menuitem" tabIndex="0"> <img src='[image/path/please_change]' alt='title or description' style={{ display: 'block', width: '100%' }}/> </div> <img src='[image/path/please_change]' alt='title or description' data-action="http://andyyou.github.io/react-coverflow/"/> <img src='[image/path/please_change]' alt='title or description' data-action="http://andyyou.github.io/react-coverflow/"/> </Coverflow>
- How can I change from 'width={960}' to like px or percent?
- I tried to decorate it with 'div' instead of 'img', but it doesn't appear on the screen. How do I make it appear on the screen?
go to vscode or any ide and copy the relative path of the image and put it in inverted comma ig this should solve the referencing part
`
<div onClick={() => fn()} onKeyDown={() => fn()} role="menuitem" tabIndex="0">
<img src='[image/path/please_change]' alt='title or description' style={{ display: 'block', width: '100%' }}/>
`