body {
font: 13px Verdana;
}
h3 {
height: 100px;
background: #72bbab;
border-radius: 50px 10px 10px 50px;
display: flex;
margin-top: 50px;
position: relative;
line-height: 100px;
color: #ffffff;
font-size: 13px;
font-weight: normal;
}
h3 i {
width: 130px;
height: 130px;
transform: translateY(-15px);
background: #71bbab;
border-radius: 50%;
position: relative;
margin-right: 20px;
}
h3:before {
content: "";
position: absolute;
border: 1px dashed #fff;
top: 5px;
bottom: 5px;
left: 20px;
right: 2px;
border-radius: 10px;
}
h3 i:before {
content: "";
position: absolute;
top: 5px;
bottom: 5px;
left: 5px;
right: 5px;
border: 1px dashed #fff;
border-radius: 50%;
}
<h3><i></i>Text</h3>
今の問題は、私が右サイドからの円の点線の境界線を削除することはできませんしています。私はborder-top:0
とborder-right:0
を試しましたが、うまくいきませんでした。事前に
おかげ
注:
h3
要素の::after
擬似を使用した画像の任意の王
のborder-rightをお試しください:1pxの固体#72bbab。 – induprakash
h3 i:before { 内容: ""; ポジション:絶対; トップ:5ピクセル; 下段:5ピクセル; 左:5ピクセル; 権利:5ピクセル; ボーダー:1ピクセルダッシュ#fff; border-right:1px solid#72bbab; ボーダー半径:50%; } – induprakash
border-right:noneとborder-right:0は機能していなかったので、私はあなたが国境の右側に与えることができると考えていた:1px固体#72bbab;緑色と混ざり合って見えるようにします。 – induprakash