我这代码显示的背景图没有原图的全 是因为我屏幕宽比原图宽小吗?

我这代码显示的背景图没有原图的全 是因为我屏幕宽比原图宽小吗?

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

    <title></title>

    <style type="text/css">

        *{

            margin:0;

            padding:0;

        }

.con{

width:100%;

            height:4000px;

}

        .wrap{

            width:100%;

            height:4043px;

            background:url("http://img1.sycdn.imooc.com/climg//59c9f7ce0001839219034033.png") top center no-repeat;

            /*background-color:#444;*/

        }

        .nav-left{

            width:200px;

            height:200px;

            background:url("http://img1.sycdn.imooc.com/climg//5a3383c70001f1b702240364.png") top center no-repeat;

            position:fixed;

            top:50%;

            left:0;

            margin-top:-100px;

        }

        .nav-right{

            width:200px;

            height:200px;

            background:url("http://img1.sycdn.imooc.com/climg//5a3383d00001a3dd02240364.png") no-repeat;

            position:fixed;

            top:50%;

            right:0;

            margin-top:-100px;

        }

    

    </style>

</head>

<body>

    <div class="con">

        <div class="wrap">

            <div class="nav-left"></div>

            <div class="nav-right"></div>

        </div>

    </div>

</body>

</html>


正在回答

登陆购买课程后可参与讨论,去登陆

1回答
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师