当前位置: 首页 > article >正文

css给盒子写四个角

如图:之前一直用定位  现在发现可以用css写 

 

 background: linear-gradient(to top, #306eef, #306eef) left top no-repeat,

    /*上左*/ linear-gradient(to right, #306eef, #386eef) left top no-repeat,

    /*左上*/ linear-gradient(to left, #386eef, #306eef) right top no-repeat,

    /*上右*/ linear-gradient(to bottom, #306eef, #306eef) right top no-repeat,

    /*上右*/ linear-gradient(to left, #386eef, #386eef) left bottom no-repeat,

    /* */ linear-gradient(to bottom, #386eef, #306eef) left bottom no-repeat,

    /*左下*/ linear-gradient(to top, #396eef, #396eef) right bottom no-repeat,

    /* 石*/ linear-gradient(to left, #306eef, #306eef) right bottom no-repeat; /*右下*/

  background-size: 2px 16px, 16px 2px, 2px 16px, 16px 2px;

 顺便记录一下给单数盒子变色

.table-body:nth-child(odd) {

    background: rgba(97, 156, 249, 0.5);

  }

 

最后再记录一下给某个盒子隐藏下滑条

.tableBody::-webkit-scrollbar {

  width: 0;

}

 


http://www.kler.cn/a/146069.html

相关文章:

  • 路由器DHCP分配IP地址规则
  • opencv入门1.1:从视频或摄像头读取图像
  • 什么是单元测试?
  • 最火web大屏可视化编辑器
  • HTML新特性【缩放图像、图像切片、平移、旋转、缩放、变形、裁切路径、时钟、运动的小球】(二)-全面详解(学习总结---从入门到深化)
  • ubuntu20.04安装tensorRT流程梳理
  • CVPR 2023 精选论文学习笔记:Prefix Conditioning Unifies Language and Label Supervision
  • 业务流程图是什么,怎么画?
  • vue3+ts mitt的使用
  • 【海德教育】唐山每年成人高考的考试时间在什么时候?
  • mysql 变量和配置详解
  • MyBatis的解析和运行原理
  • element-ui DatePicker 日期选择器-控制选择精确到时分秒-禁止选择今天之前-或者今天之后日期### 前言
  • 电脑投屏到电视的软件,Mac,Linux,Win均可使用
  • 企业文档文件管理软件推荐:提升管理效率与数据安全性
  • 【腾讯云云上实验室】用向量数据库在金融信用数据库分析中的实战运用
  • 【element优化经验】el-dialog修改title样式
  • SpringCache使用详解
  • Web 自动化神器 TestCafe(三)—用例编写篇
  • Xilinx Zynq-7000系列FPGA实现视频拼接显示,提供两套工程源码和技术支持