📜  纯 CSS 边框表格

📅  最后修改于: 2022-05-13 01:56:45.570000             🧑  作者: Mango

纯 CSS 边框表

表是数据在行和列中的排列,或者可能是更复杂的结构。表格广泛用于交流、研究和数据分析。在纯 CSS 中,我们将添加“纯表”类来在表格上添加样式。此类为表格元素添加填充和边框,并强调标题。

Bordered Table 是一个对单元格具有水平和垂直边框的表格。为了制作带边框的表格,我们将添加“pure-table-bordered”类。

纯 CSS 边框表类:

  • pure-table-bordered:该类用于创建带边框的表格。该类与纯表类一起使用。

句法:


        // Table heading content
    
        // Table body content
    

例子:

HTML


  

    

  

    
        

            GeeksforGeeks         

           

Pure CSS Bordered Table

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
RankNameRunsCenturiesStrike RateAvg
1Rohit10000299755
2Virat12000409149
3Rahul500088545
4Rishabh400028939
    
  


输出:

纯 CSS 边框表

纯 CSS 边框表

参考: https://purecss.io/tables/#bordered-table