在html代码中怎么让背景图片居中

日期:2018-12-23 15:31:35 人气:1

在html代码中怎么让背景图片居中

用background-position属性来实现。 参考代码: body{background-image:url(/i/eg_bg_desert.jpg);'背景图background-position: center center ; '居中background-repeat:no-repeat;'图片不重复}
    A+
热门评论