mlch

//-----------------------------图片自适应------------------------------------------------
<div className="bg-cover" style={{
width:"100%",
height: "415px",
// backgroundImage: `url("${update_file_url(cover)}")`,
backgroundColor:"#F3F3F4",
backgroundRepeat: "no-repeat",
backgroundSize: "100% 100%",
MozBackgroundSize: "100% 100%",
textAlign: "center",
lineHeight:"410px",
}}>
<img style={{ width: "auto", height: "auto",maxWidth:"100%",maxHeight:"415px",}} src={update_file_url(cover)}/>
</div>

 


分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2021-05-24
  • 2022-01-01
  • 2022-12-23
猜你喜欢
  • 2021-05-16
  • 2021-10-13
  • 2022-02-07
  • 2021-06-23
  • 2022-12-23
  • 2021-08-23
相关资源
相似解决方案