html折叠箭头,html – 带垂直渐变背景的箭头按钮

您可以使用以下选项来设计此按钮:before selector:

.button {

width: 120px;

height: 50px;

position: relative;

-moz-border-radius: 5px;

-webkit-border-radius: 5px;

border-radius: 5px;

border:1px solid #4d7a9c;

position:relative;

color:white;

font-size:18px;

background: #238fe7; /* Old browsers */

background: -moz-linear-gradient(top,#238fe7 0%,#156fba 100%); /* FF3.6-15 */

background: -webkit-linear-gradient(top,#156fba 100%); /* Chrome10-25,Safari5.1-6 */

background: linear-gradient(to bottom,#156fba 100%); /* W3C,IE10+,FF16+,Chrome26+,Opera12+,Safari7+ */

filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#238fe7',endColorstr='#156fba',GradientType=0 ); /* IE6-9 */

}

.button:before {

content: "";

position: absolute;

transform: scaleX(0.6) rotate(45deg);

height: 38px;

width: 38px;

right:-18px;

top:5px;

border-radius: 5px;

z-index:-1px;

background: #238fe7; /* Old browsers */

background: -moz-linear-gradient(-45deg,#156fba 100%); /* FF3.6-15 */

background: -webkit-linear-gradient(-45deg,Safari5.1-6 */

background: linear-gradient(135deg,GradientType=1 ); /* IE6-9 fallback on horizontal gradient */

}

Text

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值