将表格右,左,中心与用户输入对齐 [英] Align table right,left,center with user input
问题描述
嗨
i尝试了一些代码并且没有为我解决问题,
i有3个单选按钮说对了,中间和左边
现在我想把页面垂直分成两个相等的部分,
如果用户选择了正确的单选按钮,则应在页面的右侧创建表,如果他选择左表,则应在页面的左侧创建,如果用户选择中心单选按钮,则该表应为在页面中心创建,
这在任何条件下都不应重叠
请帮帮我这个
thanku
小提琴 [ ^ ]
请检查小提琴是否有帮助。
根据需要完成。
如果有的话请回复查询。
谢谢
看看这个: http://jsfiddle.net/vj9y7ozo/ [ ^ ]
您可以使用表align属性
来设置表left $ c页面的$ c>,
正确
或中心
如果你想使用CSS,
< < span class =code-leadattribute> table >
< tr >
< th > 月< < span class =code-leadattribute> / th >
< th > 储蓄< / th >
< / tr >
< tr >
< td > 1月< / td >
< td > 跨度>
hi
i have tried for some code and not worked-out for me,
i have 3 radio buttons which says Right,Center and Left
now i want to dived the page into two equal parts vertically ,
if the user selects the right radio button the table should be created on right-side of the page,if he selects left table should be created on left-side of the page,if the user selects the Center radio button the table should be created on Center of the page,
this should not be overlap at any condition
please help me out with this
thanku
Fiddle[^]
Please check the fiddle if this helps.
Done according to the need.
Please post back queries if any.
Thanks
Check this out: http://jsfiddle.net/vj9y7ozo/[^]
You can use tablealign property
to set the tableleft
,right
orcenter
of the page
if you want to use CSS,
<table> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>
这篇关于将表格右,左,中心与用户输入对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!