The structure of table tags and the implementation method of merging cells_PHP tutorial

WBOY
Release: 2016-07-21 14:59:56
Original
1266 people have browsed it

1.

Structure of tags
Sample code:

Copy code The code is as follows:


                                                           #
                                                                                                        td>
                                                                                
3
                                                                             >
< /table>


A complete example:



Copy the code

The code is as follows:

 
     
     
              
               
               
               
               
               
              
     
     
            
             
             
             
             
             
            
            
             
             
             
             
             
             
            
             
             
             
             
             
            
                    
             
             
             
             
             
     
信息统计表
#FirstnameLastnamePhoneQQ
1qianshou11111111111111111111
2qianshou11111111111111111111
3qianshou11111111111111111111
4qianshou11111111111111111111




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


      
       
        
        
        
        
        
        
        
       
      
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
        
      
信息统计表
#FirstnameLastnamePhoneQQ
1qianshou11111111111111111111
qianshou11111111111111111111
3qianshou11111111111111111111
4qianshou11111111111111111111




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


 
   
     
     
     
     
     
     
     
   
 
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
 
信息统计表
#FirstnameLastnamePhoneQQ
1

这是合并了四个单元格

2qianshou11111111111111111111
3qianshou11111111111111111111
4qianshou11111111111111111111


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/328103.htmlTechArticle1.table标签的结构 示例代码: 复制代码 代码如下: table border="1" caption信息统计表/caption thead tr th#/th /tr /thead tbody tr td1/td /tr tr td2/td /tr tr td...
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!