插入符号caret

.caret  在Bootstrap中的作用,写出一个“下拉箭头”,如图:

其具体css样式为:

.caret {
display: inline-block;
0;
height: 0;
margin-left: 2px;
vertical-align: middle;
border-top: 4px dashed;
border-top: 4px solid \9;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
}

二、直接用css样式写出来的的方法

在html中用一对b标签嵌入,


 其css代码如下:

#my_jd b {
border-style: solid;
border- 5px;
border-color: #CCC transparent transparent transparent;
line-height: 27px;
/* cursor: pointer;*/鼠标样式
position:relative;
top:10px;
right:-3px;/*位置调整*/
}


原文地址:https://www.cnblogs.com/shuimuDT/p/6099520.html