http://www.ilikepixels.co.uk/drop/bubbler/からバブルチャットを生成しました
私のページでは、その中に数字を入れました
.bubble {
position: relative;
width: 20px;
height: 15px;
padding: 0;
background: #FFF;
border: 1px solid #000;
border-radius: 5px;
}
.bubble:after {
content: "";
position: absolute;
top: 4px;
left: -4px;
border-style: solid;
border-width: 3px 4px 3px 0;
border-color: transparent #FFF;
display: block;
width: 0;
z-index: 1;
}
.bubble:before {
content: "";
position: absolute;
top: 4px;
left: -5px;
border-style: solid;
border-width: 3px 4px 3px 0;
border-color: transparent #000;
display: block;
width: 0;
z-index: 0;
}
background-color
中の数字に応じてバブルの を変えたいrgb
私のdivが
<div class="bubble" style="background-color: rgb(100,255,255);"> 100 </div>
色はあってほしいrgb(100,255,255)
問題は、これが三角形に影響を与えないことです。
:before と :after が含まれるようにインライン css を作成するにはどうすればよいですか?