怎样让img显示的大一点!DOCTYPE htmlhtml lang=enhead meta charset=UTF-8 meta name=author content=Xue Huanqun titleTitletitle style type=textcss img position absolute; left 0px; top 0px;
可以修改img标签的width和height属性,或者在CSS中设置img的max-width和max-height属性来让图片显示得更大。例如:
img { position: absolute; left: 0px; top: 0px; z-index: -1; max-width: 100%; max-height: 100%; }
这样图片就会根据屏幕大小自动调整大小,显示得更大。
原文地址: https://www.cveoy.top/t/topic/d6RP 著作权归作者所有。请勿转载和采集!