Home  >  Article  >  Web Front-end  >  How to hide the table by clicking the button? _html/css_WEB-ITnose

How to hide the table by clicking the button? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:09:561989browse

There are two tables with basically the same content but different titles. I want to put them in the same definite place and control one to show and the other to hide through two buttons. How to do this? When drawing with AP Div, you can't figure out where it is. Begging for help from experts


Reply to the discussion (solution)

Table 1< ;/td>

< ;/tr>

If only the title is different, why? Instead of drawing one table and clicking the button to change the title, what if we draw two tables?

Use js to implement it, get their display attributes and then set them. . . That's it

If the title is different, actually just change the title. . .
Just write it on the first floor of your table switch.

I don’t know much about js, and I don’t want to make it too complicated. I need to control the single board through the web page. There are two single boards, so I need two. surface.
means that Dreamweaver is powerful, just add the spry tab panel and it will be done. Automatically generate js files. hehe.
Thank you all

Not only the title, but also a small part of the content in the table, such as board 1, board 2, a few numbers are different
If the title is different, in fact, only the title has been changed Just a title will do. . .
Just write it on the first floor of your table switch

js is very confusing

Table 1