简体   繁体   中英

Image rotating in img tag

When you go directly to the image URL the image is not rotated, but within the image tag the image is rotated.

https://codesandbox.io/embed/wonderful-beaver-zvfp2

I'm not sure what is going on

(I use Azure to host images)

If this is happening to all images then you can simply add a transform css tag to rotate the image 90 degrees

eg:-

    style={{
      height: "500px",
      borderRadius: "15px 15px 15px 15px",
      boxShadow: "0px 5px 15px -4px #000000",
      transform:"rotate(90deg)",  <-----
    }}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM