首页 >web前端 >html教程 >我是新手,请帮忙看看 第二行的 怎么让image跨四行,谢谢!_html/css_WEB-ITnose

我是新手,请帮忙看看 第二行的 怎么让image跨四行,谢谢!_html/css_WEB-ITnose

WBOY
WBOY原创
2016-06-24 12:05:56864浏览

    


            
                
            
            
                
                            
            
                 
                            
            
               
            
             
               
            
             
           
             
               
            
            
               
            
           
             
               
            
            

            
                
            

              
          
        

                    
                        
                            
                            
                            
                        
                    

                                我是新手,请帮忙看看 第二行的 怎么让image跨四行,谢谢!_html/css_WEB-ITnose

                                
                                    
                                        
                                    
                                

                                            
                                                
                                                    
                                                    
                                                
                                            

                                                        

                                                            我是新手,请帮忙看看 第二行的 怎么让image跨四行,谢谢!_html/css_WEB-ITnose
                                                        

                                                    

                                                        用户信息
                                                    

                                        

                            

                                我是新手,请帮忙看看 第二行的 怎么让image跨四行,谢谢!_html/css_WEB-ITnose

                

                  
                     
                          
                            
                                                                                                              
                        
                       
                    
  
      
                

                  
                     
                          
                                                                           
   
                            
                                                              
                        
                       
                    
  帐      号:                       
                         
                        
 
      
                

                  
                     
                          
                                                                           
   
                            
                      
                        
                       
                    
  姓      名:                       
                        
                        

                          
                          
                      
 
      
                

                  
                     
                          
                                                                           
   
                            
                                                         
                        
                       
                    
  性      别:                       
                        
                            
                            
                        

                        
 
      
                

                  
                     
                          
                                                                           
   
                            
                                                            
                        
                       
                    
  出生年月:                       
                        
                        
 
      
                

                  
                     
                          
                                                                           
 
                           
                           
                                                              
                        
                       
                    
  所属单位:     
                                                            
                        
 
      
                

                    
                        
                            
                            
                            
                        
                    

                                我是新手,请帮忙看看 第二行的 怎么让image跨四行,谢谢!_html/css_WEB-ITnose
                            

                                
                                    
                                        
                                        
                                    
                                

                                            
                                            

                                        

                            

                                我是新手,请帮忙看看 第二行的 怎么让image跨四行,谢谢!_html/css_WEB-ITnose
                            

                


回复讨论(解决方案)

你这是要做简历么?
你的表格嵌套的有点多了,也很乱
看看这是不是你想要的:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style>td{border:1px solid red;}</style></head><body><table><tr><td colspan="3">基本信息</td></tr><tr><td>姓名:</td><td>张三</td><td rowspan="4"><img src="http://avatar.csdn.net/5/6/C/1_chddaa.jpg" alt="照片"  title="照片" width="70px" height="100px"/></td></tr><tr><td>性别:</td><td>男</td></tr><tr><td>生日:</td><td>1986.12</td></tr><tr><td>学历:</td><td>本科</td></tr> </table></body></html>

不是弄简历   你能粘到你的编辑器帮我看看么

你这是要做简历么?
你的表格嵌套的有点多了,也很乱
看看这是不是你想要的:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style>td{border:1px solid red;}</style></head><body><table><tr><td colspan="3">基本信息</td></tr><tr><td>姓名:</td><td>张三</td><td rowspan="4"><img src="http://avatar.csdn.net/5/6/C/1_chddaa.jpg" alt="照片"  title="照片" width="70px" height="100px"/></td></tr><tr><td>性别:</td><td>男</td></tr><tr><td>生日:</td><td>1986.12</td></tr><tr><td>学历:</td><td>本科</td></tr> </table></body></html>



你这是要做简历么?
你的表格嵌套的有点多了,也很乱
看看这是不是你想要的:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style>td{border:1px solid red;}</style></head><body><table><tr><td colspan="3">基本信息</td></tr><tr><td>姓名:</td><td>张三</td><td rowspan="4"><img src="http://avatar.csdn.net/5/6/C/1_chddaa.jpg" alt="照片"  title="照片" width="70px" height="100px"/></td></tr><tr><td>性别:</td><td>男</td></tr><tr><td>生日:</td><td>1986.12</td></tr><tr><td>学历:</td><td>本科</td></tr> </table></body></html>



是不是嵌套的比较多容易出问题?

是不是嵌套的比较多容易出问题?
------
不会,熟悉了就不会
表格

table合并单元格 colspan(跨列)和rowspan(跨行)  如:rowspan=4  跨4行

table合并单元格 colspan(跨列)和rowspan(跨行)  如:rowspan=4  跨4行


现在是每一行都已有
  有没有办法跨table合并?
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn