Home >Web Front-end >HTML Tutorial >Set a table and a filedset to the same width_html/css_WEB-ITnose

Set a table and a filedset to the same width_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:20:371303browse

我想将一个table和一个filedset设置在同一个宽度下,如何设置?
   


                
        
        
                  
        
        
        
        
                
 工作证件号码: 
检查证

                

                见证人
     


      
      
        
        
      
        
        
    
姓名: 性别:
证件种类: 证件号码:

    


No matter how you adjust the width of this code, it always goes up and down. Please help me solve it! I really can’t even think of it in my head! !


Reply to discussion (solution)




Your table
Your fieldset



< ;tr>
your table



your fieldset < /td>

HTML
Tag
Definition and Usage
The fieldset element groups related elements within a form.
The
tag packages part of the form content to generate a set of related form fields.
When a set of form elements is placed inside a
tag, the browser will display them in a special way. They may have special borders, 3D effects, or even create a subform to handle these elements.
The
tag has no required or unique attributes.

Tried doing that, but it didn’t work! I don’t know if all HTML header tags will look for the nearest end tag

After thinking about it, it should be two td tags and a tr tag! Only then will both elements be placed at the same height! Not one at the top and one at the bottom

Do you want to display them two in a row?
Add float:left. . .

In addition, although the table in your fieldset has a width set, the input inside stretches the table.

In addition, there is something wrong with the width setting of fieldset in your code, style="width=100px" => style="width:100px"

Statement:
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