mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-26 13:25:46 +08:00
fix: remove the background caused by the line-height of img
This commit is contained in:
@@ -76,6 +76,7 @@ const Image: React.FC<ImageProps> = React.memo(({
|
||||
width: ${scale};
|
||||
height: ${scale};
|
||||
object-fit: scale-down;
|
||||
display: block;
|
||||
}
|
||||
`}</style>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user