<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style type="text/css">
.info-type-one{
width: 120px;
height: 30px;
border: 1px solid #EEE;
margin: 0 auto;
text-align: center;
line-height: 30px;
}
.info-panel-triple{
width: 0;
height: 0;
border: 8px solid transparent;
border-bottom-color: hsla(0,0%,6%,.6);
position: absolute;
left: 16px;
top: -16px;
}
.info-panel-content{
display: inline-block;
position: relative;
margin-top: 15px;
height: 30px;
line-height: 30px;
background-color: hsla(0,0%,6%,.6);
color: #FFF;
text-align: left;
padding-left: 15px;
padding-right: 12px;
border-radius: 3px;
font-size: 0.8rem;
letter-spacing: 0.1rem;
}
</style>
</head>
<body>
<div class="info-type-one">
<!-- 内容区域 -->
<div class="">
测试内容!
</div>
<!-- 显示提示区域 内容 -->
<div class="info-panel-content">
<!-- 显示提示框区域 三角区域 -->
<div class="info-panel-triple"></div>
啦
</div>
</div>
</body>
</html>
带箭头的css
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:elementUI多文件表单上传
下一篇:代码commit规范
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
【CSS】第九讲:CSS基本选择器(1)
本文讲了部分CSS选择器
选择器 属性值 基本语法 -
隐藏原生select下拉框的向下箭头▼
select { appearance: none;/*隐藏原生select下拉框的向下箭头▼*/}
CSS 原生select样式自定义 下拉框 -
css箭头例子 上下左右箭头
css arrow 向下箭头 ...
html css