Blogger Information
Blog 28
fans 0
comment 0
visits 19650
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
0906 表格的圆角设计 20190906 2000-2200
没有人的夏天的博客
Original
675 people have browsed it

表格的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;
        }

运行实例 »

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




Correction status:qualified

Teacher's comments:这个表格别看简单, 里面考察的知识点非常多
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post