将表格右,左,中心与用户输入对齐 [英] Align table right,left,center with user input

查看:131
本文介绍了将表格右,左,中心与用户输入对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i尝试了一些代码并且没有为我解决问题,



i有3个单选按钮说对了,中间和左边



现在我想把页面垂直分成两个相等的部分,



如果用户选择了正确的单选按钮,则应在页面的右侧创建表,如果他选择左表,则应在页面的左侧创建,如果用户选择中心单选按钮,则该表应为在页面中心创建,





这在任何条件下都不应重叠





请帮帮我这个



thanku

解决方案

小提琴 [ ^ ]

请检查小提琴是否有帮助。

根据需要完成。

如果有的话请回复查询。

谢谢


看看这个: http://jsfiddle.net/vj9y7ozo/ [ ^ ]


您可以使用表 align属性来设置表 left 正确中心



如果你想使用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 table align property to set the table left ,right or center of the page

if you want to use CSS,

<table>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>


这篇关于将表格右,左,中心与用户输入对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆