细线处理

本文介绍了一种使用CSS创建细线边框的技巧,通过调整元素的尺寸和使用特定的CSS属性,如transform和border,可以实现视觉上非常细的边框效果。这种方法适用于希望在网页设计中加入精细细节的开发者。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. 盒子边框做细线
 .app_progres_play:before{
            content: "";
            position: absolute;
            top: -50%;
            bottom: -50%;
            left: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            -webkit-transform: scale(0.5);
            transform: scale(0.5);
            border: 1px solid  #e1e3e5;
            box-sizing:border-box;
            border-radius: 0.1rem;
            box-shadow: 0 2px 23px 0 rgba(0, 0, 0, 0.04);

        }
  1. 单独盒子做细线

    <div class="ThinLine"></div>
    .ThinLine{
                width: 6.34rem;
                margin: auto;
                border: none;
                border-bottom: 1px solid #e1e3e5;
                height: 1px;
                transform: scaleY(0.5);
                transform-origin: 0 0;
                -webkit-transform: scaleY(0.5);
                -webkit-transform-origin: 0 0;
            }
    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值