I am having a tabbed view with a table in each tab. By changin the tab the table is set to display: none
. On clicking on the tab again the table will be set to display: block
.
我有一个标签视图,每个标签中都有一个表格。通过切换选项卡,表格设置为display:none。再次单击选项卡时,表将设置为display:block。
The problem is on clicking back on the tab, the table loses its width and shrinks. I want the table to keep its original width. How to do this?
问题是单击选项卡,表失去宽度并缩小。我希望桌子保持原来的宽度。这该怎么做?
After changing the tab
更改选项卡后
1 个解决方案
#1
Display:block
will change the by default behavior of the Table element which results in loosing its width. instead of that you can change display:table
显示:块将更改Table元素的默认行为,这会导致其宽度失去。而不是你可以改变display:table
#1
Display:block
will change the by default behavior of the Table element which results in loosing its width. instead of that you can change display:table
显示:块将更改Table元素的默认行为,这会导致其宽度失去。而不是你可以改变display:table