實(shí)現(xiàn)思路:

(推薦教程:css快速入門)
兩個(gè)并排的div,在第二個(gè)div內(nèi)定義一個(gè)2倍寬高的名為item,對(duì)item進(jìn)行設(shè)置border-radius: 50%,再對(duì)其進(jìn)行絕對(duì)定位。
代碼實(shí)現(xiàn):
<head>
<meta charset="UTF-8" />
<title>Title</title>
<style>
.box {
width: 50px;
height: 50px;
overflow: hidden;
background: #655;
text-align: center;
position: relative;
float: left;
}
.item {
width: 100px;
height: 100px;
background: #fff;
border-radius: 50%;
position: absolute;
top: -50px;
left: 0;
}
</style>
</head>
<body>
<div class="box"></div>
<div class="box">
<div class="item"></div>
</div>
</body>
</html>實(shí)現(xiàn)效果:
標(biāo)題名稱:css如何實(shí)現(xiàn)圓角內(nèi)凹效果
URL標(biāo)題:http://chinadenli.net/article28/cpcicp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)頁(yè)設(shè)計(jì)公司、企業(yè)網(wǎng)站制作、App設(shè)計(jì)、網(wǎng)站建設(shè)、動(dòng)態(tài)網(wǎng)站、營(yíng)銷型網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)