请老师检查代码有没有可以优化的

请老师检查代码有没有可以优化的

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>对联广告</title>
    <style type="text/css">
    *{padding: 0;margin: 0 auto;}
    .content{background-image: url(http://img1.sycdn.imooc.com/climg//59c9f7ce0001839219034033.png);
            width: 1903px;
            position: relative;
            height: 4033px;}
            .left-div{background-image: url(http://img1.sycdn.imooc.com/climg//5a3383d00001a3dd02240364.png);
                width: 224px;
                position: fixed;
                left: 0;
                top: 50%;
                margin-top: -112px;
                height: 364px;}

            .right-div{background-image: url(http://img1.sycdn.imooc.com/climg//5a3383c70001f1b702240364.png);
                width: 224px;
                right: 0;
                top: 50%;
                margin-top: -112px;
                position: fixed;
                height: 364px;}
            
    }
</style>
</head>
<body>
    <div class="content">
        <div class="left-div">
            
        </div>
        <div class="right-div">

        </div>
    </div>
</body>
</html>

正在回答 回答被采纳积分+1

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

1回答
好帮手慕粉 2020-01-21 14:56:02

同学你好,代码是正确的,也很简洁,无需优化,但是代码中多了一个符号:

http://img1.sycdn.imooc.com//climg/5e26a07909df965d06720376.jpg

如果我的回答帮助到了你,欢迎采纳,祝学习愉快~

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

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

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

0 星
请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

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