我想将一个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)
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"