只是一個快速的,第二雙眼睛和人們認爲最好的方法會是這樣的......正如你在默認的泡沫看到它有箭頭在頂部但是第二個有透明背景,但需要做的是一個帶有邊框輪廓作爲目前即時通訊使用填充使用邊框寬度等指針...HTML/CSS評論泡沫箭頭 - 關於調整邊界線的建議只有
/* bubble box */
.comment__arrow {
border-style: solid;
border-width: 20px 0 0 20px;
border-color: transparent transparent transparent #edf1ee;
position: absolute;
top: -20px;
}
.comment__bubble {
background: #edf1ee;
padding: 24px 24px 0 24px;
margin-bottom: 12px;
border-radius: 5px;
position: relative;
}
.comment__bubble--write {
background: transparent;
border: 1px solid #EDF1EE;
padding: 19px 24px 0 24px;
}
.comment__bubble--write .comment__arrow {
border-color: transparent;
}
<div class="comment__container comment__container--response">
<p class="comment__arthor">John Thomas <span>Yesterday</span></p>
<div class="comment__bubble">
<span class="comment__arrow"></span>
<p>I'm sorry to hear you didn't enjoy it Jimbo. It does need to be opened about an hour before drinking to give it some air and time to wam up to room tempeature.</p>
</div>
<p><a href="#" class="btn btn--secondary">Like</a> <span class="small">1 person likes this</span></p>
<form id="comment_ID">
<div class="comment__bubble comment__bubble--write">
<span class="comment__arrow"></span>
<textarea placeholder="Write a comment..." class="auto-expand" rows="1" data-min-rows="1"></textarea>
</div>
<input type="submit" name="submit__coment_ID" class="pull-right btn btn--primary large" value="Send">
</form>
</div>
所以你想成爲透明帶邊框? – Nicholas
是的第二個例子,第一個和我如何有第一個是正確的,但要申請一個類(我已經這樣做)重寫使用清除/邊界線版本 – James
我不知道你是否可以做這很容易。 但作爲一個想法或黑客可能會做2個三角形與背景灰色留下來,其他與白色背景和小5% – Nicholas