【大屏可视化】 flex布局下,边框边角线制作

大屏可视化



flex布局下,边框边角线制作

/* flex布局下,边框边角线制作 */
/* 外层div */
.data-box1{
    border:0.005rem solid #032d60;
    -webkit-box-shadow:#07417a 0 0 0.05rem;
    -moz-box-shadow:#07417a 0 0 0.05rem;
    box-shadow:inset 0 0 0.15rem #07417a;
    position:relative;
}
/* div下的<i>标签(也就是4个角) */
/*四个角*/
/* 单位是根据width:1920px来设计的,1rem=192px */
.topL{width:0.1rem;height:0.1rem;border-top-width:0.015rem;border-top-color:#26c6f0;border-top-style:solid;border-left-width:0.015rem;border-left-color:#26c6f0;border-left-style:solid;position:absolute;top:-0.015rem;left:-0.015rem}
.topR{width:0.1rem;height:0.1rem;border-top-width:0.015rem;border-top-color:#26c6f0;border-top-style:solid;border-right-width:0.015rem;border-right-color:#26c6f0;border-right-style:solid;position:absolute;top:-0.015rem;right:-0.015rem}
.bottomL{width:0.1rem;height:0.1rem;border-bottom-width:0.015rem;border-bottom-color:#26c6f0;border-bottom-style:solid;border-left-width:0.015rem;border-left-color:#26c6f0;border-left-style:solid;position:absolute;bottom:-0.015rem;left:-0.015rem}
.bottomR{width:0.1rem;height:0.1rem;border-bottom-width:0.015rem;border-bottom-color:#26c6f0;border-bottom-style:solid;border-right-width:0.015rem;border-right-color:#26c6f0;border-right-style:solid;position:absolute;bottom:-0.015rem;right:-0.015rem}




html内容:

<!-- 使用方式 -->
<div class="data-box1">
    <i class="topL"></i>
    <i class="topR"></i>
    <i class="bottomL"></i>
    <i class="bottomR"></i>
    <div>内容体...</div>
</div>
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值