• 2022-07-02
    若背景图片比容器小,但只想要显示一张图片,且控制其位置在左侧居中显示,该如何设置代码?( )
    A: .box{ background-repeat:repeat; background-position:center left; }
    B: .box{ background-repeat:repeat; background-position:left center; }
    C: .box{ background-repeat:no-repeat; background-position:center left; }
    D: .box{ background-repeat:no-repeat; background-position:left center; }