博客列表 >0906 表格的圆角设计 20190906 2000-2200

0906 表格的圆角设计 20190906 2000-2200

没有人的夏天的博客
没有人的夏天的博客原创
2019年10月12日 12:36:46671浏览

表格的css设计及圆角设计


总结: 表格的圆角设计是元素的结构设计,需要使用html语言,不能在css中修改元素结构. 可以通过css的背景样式设计产生视觉效果.

以下是html设计方式效果图

TIM截图20190910183804.png



实例

/* 表格圆角设计,在html table添加html结构属性 cellspacing="0",同时与rowspan colspan 
属于修改表结构,不能在css中使用,需要在html中使用,css可以改变元素样式,但不能改变结构 */
        /* 在表格和四个角添加圆角设计         */
        
        table {
            border-radius: 15px;
        }
        
        table thead tr th:first-of-type {
            border-top-left-radius: 15px;
        }
        
        table thead tr th:last-of-type {
            border-top-right-radius: 15px;
        }
        
        table tbody tr:last-of-type>td:first-of-type {
            border-bottom-left-radius: 15px;
        }
        
        table tbody tr:last-of-type>td:last-of-type {
            border-bottom-right-radius: 15px;
        }

运行实例 »

点击 "运行实例" 按钮查看在线实例




声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议