border-radius不被遮挡住

Posted 森海轮回

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了border-radius不被遮挡住相关的知识,希望对你有一定的参考价值。

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
    <title></title>
</head>
<style type="text/css">
#wrapper {
    position: absolute;
}

#middle {
    border-radius: 100px;
    overflow: hidden; 
}

#box {
    width: 300px; height: 300px;
    background-color: #cde;
}
</style>

<body>
<div id="wrapper">
    <div id="middle">
        <div id="box"></div>
    </div>
</div>
</body>
</html>

 

以上是关于border-radius不被遮挡住的主要内容,如果未能解决你的问题,请参考以下文章