CSS 实现箭头

相对来说CSS 实现箭头产生的效果简单一点,根据需要来安排。

毕竟有些效果是CSS 无法实现的 那就直接切图吧!

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>三角形叠加</title>
<style type="text/css">
<!--
.pos_rel {
    position:relative;
    _line-height:0;
    width:40px;
    height:23px;
}
.pos_rel .icon1 {
    display: block;
    border-width: 5px 5px 5px 0px;
    border-color: transparent rgb(28, 126, 207) transparent transparent;
    border-style: solid;
    position: absolute;
    left: 0px;
    top: 13px;
    width: 0px;
    height: 0px;
    z-index: 100;
}
.pos_rel .icon2 {
    display: block;
    border-width: 6px 6px 6px 0px;
    border-color: transparent rgb(255, 255, 255) transparent transparent;
    border-style: solid;
    position: absolute;
    left: 1px;
    top: -6px;
    width: 0px;
    height: 0px;
}
-->
.contentbox {
    border: 1px solid rgb(28, 126, 207);
    position: absolute;
    background-color: rgb(255, 255, 255);
    width: 100%;
    height: 100%;
    padding: 5px;
    box-shadow: 3px 3px 4px rgb(153, 153, 153);
    left: 5px;
    border-radius: 3px 3px 3px 3px;
}
</style>
</head>
<body>
<div class="pos_rel"> <span class="icon1"><span class="icon2"></span></span>
    <div class="contentbox"> … </div>
</div>
</body>
</html>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值