最新消息:前端博客、web前端博客、Angularjs、javascript、jQuery、HTML5、CSS3

CSS3对话气泡特效

CSS&HTML AZ 1999浏览 0评论

每当讨论到对话气泡时,无数的用户界面用途就会浮现出来。这些可以用于处理讨论评述,或者创建公告版,或者显示引用文本。只需将下面的类加入你的样式表,你也可以从这贴 CSS3代码片段,找到相关的HTML代码。

  1. .chat-bubble {
  2. background-color: #ededed;
  3. border: 2px solid #666;
  4. font-size: 35px;
  5. line-height: 1.3em;
  6. margin: 10px auto;
  7. padding: 10px;
  8. position: relative;
  9. text-align: center;
  10. width: 300px;
  11. -moz-border-radius: 20px;
  12. -webkit-border-radius: 20px;
  13. -moz-box-shadow: 0 0 5px #888;
  14. -webkit-box-shadow: 0 0 5px #888;
  15. font-family: 'Bangers', arial, serif;
  16. }
  17. .chat-bubble-arrow-border {
  18. border-color: #666 transparent transparent transparent;
  19. border-style: solid;
  20. border-width: 20px;
  21. height: 0;
  22. width: 0;
  23. position: absolute;
  24. bottom: -42px;
  25. left: 30px;
  26. }
  27. .chat-bubble-arrow {
  28. border-color: #ededed transparent transparent transparent;
  29. border-style: solid;
  30. border-width: 20px;
  31. height: 0;
  32. width: 0;
  33. position: absolute;
  34. bottom: -39px;
  35. left: 30px;
  36. }

转载请注明:TUTERM.COM » CSS3对话气泡特效

如果您觉得本文的内容对您的学习有所帮助,您可以支付宝(左)或微信(右):
alipay weichat

您必须 登录 才能发表评论!