Ask the CSS master to help me see why the elements just can't be displayed.

1. It feels very strange that the code is correct after looking at it for a long time, but the element just can"t show the scrollWay with the background color set. This element just can"t show
2.
< html lang= "zh-CN" >

.

< head >

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>ffg</title>
<style type="text/css">
    * {
        margin: 0;
        padding: 0;

    }

    .box {
        width: 500px;
        height: 150px;
        margin: 50px auto;
        background-color: -sharpccc;
        position: relative;
    }

    .leftBtn {
        float: left;
        padding-top: 20px;

    }

    .leftBtn a {
        display: block;
        width: 20px;
        height: 65px;
        background: url(images/bg05.png) no-repeat 0 0;

    }

    .rightBtn {
        float: left;
        padding-top: 20px;

    }

    .rightBtn a {
        display: block;
        width: 20px;
        height: 65px;
        background: url(images/bg05.png) no-repeat -40px 0;
    }

    .imgList {
        float: left;

        height: 130px;
        width: 460px;
        overflow: hidden;
    }

    .m_unit {
        width: 100%;
        height: 130px;
    }

    .scrollWay {
        width: 100%;
        height: 20px;
        z-index: 999;
        background-color: rgb(66, 66, 66);
    }
</style>

< / head >

< body >

<div class="box">
    <div class="leftBtn">
        <a href="javascript:;"></a>
    </div>
    <div class="imgList">
        <div class="m_unit"></div>
        <div class="scrollWay">ererertwer 
            <div class="scrollBlock"></div>
        </div>
    </div>
    <div class="rightBtn">
        <a href="javascript:;"></a>
    </div>
</div>

< / body >

< / html >

look at the picture, but you can"t get the background color

.
Mar.31,2021

should not clear the float, and then use overflow to modify the height of the parent element for hidden.


.imgList130px,130pxscrollWayoverflow:hidden

clipboard.png
, or overflow


Thank you very much for benefiting from your answers. Thank you

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a5f1-4d8a8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a5f1-4d8a8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?