Home php教程 php手册 table标签的结构与合并单元格的实现方法

table标签的结构与合并单元格的实现方法

Jun 13, 2016 am 11:42 AM
tab table and code Cell merge copy accomplish method Label of Example structure

1.

标签的结构
示例代码:

复制代码 代码如下:


 


      

       

       

       

       

      

      

       

       

       

       

       

       

       

       

       

       

       

       

      

信息统计表
#
1
2
3
4


一个完整的例子:

复制代码 代码如下:


 


     
     
              
               
               
               
               
               
              
     
     
            
             
             
             
             
             
            
            
             
             
             
             
             
             
            
             
             
             
             
             
            
                    
             
             
             
             
             
     
信息统计表
# Firstname Lastname Phone QQ
1 qian shou 11111111111 111111111
2 qian shou 11111111111 111111111
3 qian shou 11111111111 111111111
4 qian shou 11111111111 111111111




2.合并上下的单元格(rowspan)
示例代码:

复制代码 代码如下:



      
       
        
        
        
        
        
        
        
       
      
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
        
      
信息统计表
# Firstname Lastname Phone QQ
1 qian shou 11111111111 111111111
qian shou 11111111111 111111111
3 qian shou 11111111111 111111111
4 qian shou 11111111111 111111111




3.合并左右的单元格(colspan)
示例代码:

复制代码 代码如下:



 
   
     
     
     
     
     
     
     
   
 
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
 
信息统计表
# Firstname Lastname Phone QQ
1

这是合并了四个单元格

2 qian shou 11111111111 111111111
3 qian shou 11111111111 111111111
4 qian shou 11111111111 111111111


Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to write a novel in the Tomato Free Novel app. Share the tutorial on how to write a novel in Tomato Novel. How to write a novel in the Tomato Free Novel app. Share the tutorial on how to write a novel in Tomato Novel. Mar 28, 2024 pm 12:50 PM

How to write a novel in the Tomato Free Novel app. Share the tutorial on how to write a novel in Tomato Novel.

How to recover deleted contacts on WeChat (simple tutorial tells you how to recover deleted contacts) How to recover deleted contacts on WeChat (simple tutorial tells you how to recover deleted contacts) May 01, 2024 pm 12:01 PM

How to recover deleted contacts on WeChat (simple tutorial tells you how to recover deleted contacts)

How to implement dual WeChat login on Huawei mobile phones? How to implement dual WeChat login on Huawei mobile phones? Mar 24, 2024 am 11:27 AM

How to implement dual WeChat login on Huawei mobile phones?

Quickly master: How to open two WeChat accounts on Huawei mobile phones revealed! Quickly master: How to open two WeChat accounts on Huawei mobile phones revealed! Mar 23, 2024 am 10:42 AM

Quickly master: How to open two WeChat accounts on Huawei mobile phones revealed!

The secret of hatching mobile dragon eggs is revealed (step by step to teach you how to successfully hatch mobile dragon eggs) The secret of hatching mobile dragon eggs is revealed (step by step to teach you how to successfully hatch mobile dragon eggs) May 04, 2024 pm 06:01 PM

The secret of hatching mobile dragon eggs is revealed (step by step to teach you how to successfully hatch mobile dragon eggs)

How to set font size on mobile phone (easily adjust font size on mobile phone) How to set font size on mobile phone (easily adjust font size on mobile phone) May 07, 2024 pm 03:34 PM

How to set font size on mobile phone (easily adjust font size on mobile phone)

The difference between Go language methods and functions and analysis of application scenarios The difference between Go language methods and functions and analysis of application scenarios Apr 04, 2024 am 09:24 AM

The difference between Go language methods and functions and analysis of application scenarios

How to implement the WeChat clone function on Huawei mobile phones How to implement the WeChat clone function on Huawei mobile phones Mar 24, 2024 pm 06:03 PM

How to implement the WeChat clone function on Huawei mobile phones

See all articles