DIV+CSS实现左侧带三角形的提示框
2016-09-20 14:28
543 查看
实现效果
实现代码
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link rel="shortcut icon" href="resources/img/logo-color.png" type="image/x-icon"> <title>测试</title> <style> .out-div { color: #FFFFFF; font-size: 16px; line-height: 40px; display: inline-block; height: 40px; width: 200px; text-align: center; border-radius: 5px; margin-left: 32px; vertical-align: top; background-color: maroon; } .arrow { width: 0px; height: 0px; border-top: 10px solid transparent; border-right: 10px solid; border-bottom: 10px solid transparent; position: absolute; margin-left: -10px; margin-top: 10px; border-right-color: maroon; } </style> </head> <body> <div class="out-div"> <div class="arrow" ></div> <span>这是一个提示框</span> </div> </body> </html>
相关文章推荐
- css 提示框 CSS实现带箭头的DIV提示框
- div css 伪类 不固定图片大小 居中, css div 实现三角形
- CSS实现DIV三角形
- div对话框,js+div+css实现好看的提示框效果
- css实现左右布局,左侧div固定不变,右侧div宽度自适应
- CSS实现DIV三角形
- div+CSS实现三角形
- CSS实现DIV三角形
- DIV+CSS实现的拖动+隐藏/显示效果+背景变暗
- 用js实现的DIV+CSS编辑器代码
- 用js实现的DIV+CSS编辑器代码
- DIV+CSS实现alt属性效果
- div+css实现鼠标放上去,背景跟图片都会变化。
- div+css实现Firefox和IE6兼容的垂直居中
- 用css+div实现表格的每行显示3列的功能
- div+css实现Firefox与IE6兼容的手形鼠标指针
- div+css使用!important标记实现Firefox和IE6处理padding尺寸上的兼容
- Div+css+js实现高度适应浏览器,做出的效果像winform
- div+css实现圆角边框
- div+css实现的滑动门,简洁,新手上路 (小鸽子系列)