请老师看看是否正确。谢谢。

来源:4-15 项目作业

慕斯卡2474635

2021-06-08 16:08:38

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>

    <link rel="stylesheet" href="css/css.css">

</head>

<body>

    <div class="box">

        <a href="" class="button"><img src="imgs/btn.png" alt=""></a>

        <a href="" class="car"><img src="imgs/cart.png" alt=""></a>

        <div class="number">3</div>

    </div>    

</body>

</html>




body .box {

    width700px;

    margin0 auto

    background-colorrgb(235235235);

    overflowhidden;

    padding40px;

    positionrelative;

}

body .box .button {

    floatleft;

    margin-top62px;

}

body .box .car {

    floatright;

}

body .box .number {

    width55px;

    height55px;

    border-radius50%;

    background-colorred;

    colorwhite;

    positionabsolute;

    right28px;

    top46px;

    text-aligncenter;

    line-height55px;

    font-size28px;

}










写回答

1回答

好帮手慕言

2021-06-08

同学你好,效果是正确的,继续加油,祝学习愉快~

0

0 学习 · 15276 问题

查看课程