CSS_rotate应用按钮右三角形样式

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 150px;
            height: 20px;
            background-color: orchid;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
             margin: auto;
            /*margin简写属性在一个声明中设置所有外边距属性。
            该属性可以有1到4个值。 
            实例:
            margin:10px 5px 15px 20px;
            上边距是 10px 右边距是 5px 下边距是 15px 左边距是 20px */
        }

        .more {
            position: absolute;
            left: 8px;
            top: 8px;
            background: -webkit-linear-gradient(left, #ff506c, #FF6Bc6);
            border-radius: 15px;
            padding: 3px 20px 3px 10px;
        }

        .more::after {
            content: '';
            position: absolute;
            top: 7px;
            right: 9px;
            width: 7px;
            height: 7px;
            border-top: 2px solid #fff;
            border-right: 2px solid #fff;
            transform: rotate(45deg);
            /*顺时针旋转45度*/
        }
        a{
            text-decoration: none;
            /*取消a标签超链接下划线*/
            color: #fff;
        }
    </style>
</head>

<body>
    <!-- <div style="background: pink;width: 300px;height: 500px;"> -->
    <div class="more"><a href="#">more about this</a></div>

</body>

</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值