html - css3 圆形聊天气泡,右 'arrow' 和边框

标签 html css chat

我正在努力创建一个带有聊天气泡的聊天面板。

我的 HTML 结构:

<div id="container">
  <div class="bubble">

在这里看一个例子:

fiddle example here

我的问题是我不知道如何将第二个引号“箭头”向右转。

此外,如何添加边框以使其也包含“箭头”?

提前致谢。

最佳答案

添加这些

 <div class="arrowright"></div>


  .arrowright 
  {
  background: #2C2C2C;
  font-size: 12px;
  position: relative;
  width: 1em;
  height: 1em;
  margin-left: -0.7em;
  }

  .arrowright::before {
  bottom: -0.666em;
  left: 0.8em;
  position: absolute;
  border-left: 1.2em solid #2C2C2C;
  border-top: 1.2em solid rgba(44, 44, 44, 0);
  border-bottom: 1.2em solid rgba(44, 44, 44, 0);
  content: "";
  }

关于html - css3 圆形聊天气泡,右 'arrow' 和边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13800934/

相关文章:

android - 删除聊天开头的方法

javascript - 如何强制执行之前注入(inject)的脚本?

html - CSS。具有不同字体大小的占位符和文本框

css - 网格列 fr 不适用

android - 如何在具有不同类型消息的聊天应用程序上组织 RecyclerView?

javascript - 聊天框滚动到底部?

javascript - 使用 HTML5 FILE API 读取和解析 XML 文件

jquery - 尝试创建一个按钮,该按钮在单击时分成两个新按钮

html - IE8 div 宽度 float :right issue for responsive site

javascript - Bootstrap : change modal backdrop opacity only for specific modals