纯CSS实现的气球泡泡对话框
2013-12-31 14:17
423 查看
一、边框法实现的等腰直角三角形式的对话框
边框法实现底部90度尖角对话框css代码:
.org_box{ height:80px; line-height:80px; margin-bottom:30px; padding-left:2em; background:#F3961C; position:relative; } .org_bot_cor{ width:0; height:0; font-size:0; border-width:15px; border-style:solid; border-color:#f3961c transparent transparent; _border-color:#f3961c white white; overflow:hidden; position:absolute; left:60px; bottom:-30px; }
HTML代码:
<div class="org_box"> <span class="org_bot_cor"></span> 边框法实现底部90度尖角对话框 </div>
二、字符法实现的等腰直角三角形式的对话框
◆字符法实现底部90度尖角对话框css代码:
.org_box{ height:80px; line-height:80px; margin-bottom:30px; padding-left:2em; background:#F3961C; position:relative; } .org_bot_cor_2{ height:30px; line-height:0; font-size:60px; color:#f3961c; position:absolute; left:60px; bottom:-25px; }
HTML代码:
<div class="org_box"> <span class="org_bot_cor_2"></span> 字符法实现底部90度尖角对话框 </div>
相关文章推荐
- CSS text-indent 属性
- css的绝对定位
- DIV CSS 网页兼容全搞定 (IE6 IE7 IE8 IE9 火狐 谷歌)
- CSS hack:针对IE6,IE7,firefox显示不同效果
- input checkbox radio样式改变
- html css 鼠标事件
- css弹出层 覆盖底层
- CSS解读之border属性的其他用途
- Flex样式-TextArea篇
- Flex样式-RadioButton篇
- Flex样式-NumericStepper篇
- Flex样式-DateChooser篇
- Flex样式-ComboBox篇
- 简单使用CSS3实现炫酷读者墙效果
- CSS中clear清除元素容器浮动
- DIV+CSS中!important;的问题。
- CSS文件的相互引用
- css黑白滤镜将网页彩色图片变成黑…
- CSS3 过渡效果transition
- CSS border-style 属性