CSS写上下左右箭头
CSS写上下左右箭头
CSS部分:
.arrow_up {
border-color: transparent transparent #6EAFD5;
border-style: dashed dashed solid;
border-width: 0 4px 4px;
display: inline-block;
font-size: 0;
height: 0;
line-height: 0;
margin: 0 0 0 3px;
vertical-align: middle;
width: 0;}
.arrow_down{
border-color: #9ABBC8 transparent transparent;
border-style: solid dashed dashed;
border-width: 4px 4px 0;
display: inline-block;
font-size: 0;
height: 0;
line-height: 0;
margin: 0 0 0 3px;
vertical-align: middle;
width: 0;
}
.arrow_right{
border-color:transparent transparent transparent #9ABBC8;
border-style:dashed dashed dashed solid;
border-width: 4px 0 4px 4px;
display: inline-block;
font-size: 0;
height: 0;
line-height: 0;
margin: 0 0 0 3px;
vertical-align: middle;
width: 0;
}
.arrow_left{
border-color:transparent #9ABBC8 transparent transparent;
border-style:dashed solid dashed dashed;
border-width: 4px 4px 4px 0px;
display: inline-block;
font-size: 0;
height: 0;
line-height: 0;
margin: 0 0 0 3px;
vertical-align: middle;
width: 0;
}
body部分:
<span class="arrow_up"></span>
<span class="arrow_down"></span>
<span class="arrow_right"></span>
<span class="arrow_left"></span>
.arrow_up {
border-color: transparent transparent #6EAFD5;
border-style: dashed dashed solid;
border-width: 0 4px 4px;
display: inline-block;
font-size: 0;
height: 0;
line-height: 0;
margin: 0 0 0 3px;
vertical-align: middle;
width: 0;}
.arrow_down{
border-color: #9ABBC8 transparent transparent;
border-style: solid dashed dashed;
border-width: 4px 4px 0;
display: inline-block;
font-size: 0;
height: 0;
line-height: 0;
margin: 0 0 0 3px;
vertical-align: middle;
width: 0;
}
.arrow_right{
border-color:transparent transparent transparent #9ABBC8;
border-style:dashed dashed dashed solid;
border-width: 4px 0 4px 4px;
display: inline-block;
font-size: 0;
height: 0;
line-height: 0;
margin: 0 0 0 3px;
vertical-align: middle;
width: 0;
}
.arrow_left{
border-color:transparent #9ABBC8 transparent transparent;
border-style:dashed solid dashed dashed;
border-width: 4px 4px 4px 0px;
display: inline-block;
font-size: 0;
height: 0;
line-height: 0;
margin: 0 0 0 3px;
vertical-align: middle;
width: 0;
}
body部分:
<span class="arrow_up"></span>
<span class="arrow_down"></span>
<span class="arrow_right"></span>
<span class="arrow_left"></span>
design_ss- 帖子数 : 122
积分 : 373
威望 : 0
注册日期 : 11-12-28
您在这个论坛的权限:
您不能在这个论坛回复主题
10/09/13, 06:50 am 由 design_ss
» javascript 函数的方法call()和apply()
09/09/13, 05:10 am 由 design_ss
» JS中typeof与instanceof的区别
08/08/13, 11:10 am 由 design_ss
» JS中的构造函数解析
08/08/13, 09:44 am 由 design_ss
» js对象属性方法大总结
08/08/13, 08:46 am 由 design_ss
» js中的值类型和引用类型小结 文字说明与实例
08/08/13, 06:35 am 由 design_ss
» CSS3中轻松实现渐变效果
05/07/13, 09:48 am 由 design_ss
» jQUery 常用实例
03/07/13, 09:56 am 由 design_ss
» mask_layer 遮照
03/07/13, 08:18 am 由 design_ss