HTML缩进表

HTML缩进表,html,css,jsf,Html,Css,Jsf,我不知道如何标记a和b,而且如果我将按钮设置在列的右侧,那么它会将其一直分隔到最右侧,我不知道为什么。。。。这是否可以在没有CSS的情况下实现?如果不是,那么CSS也可以。谢谢你的帮助 您可能希望对其进行标记,使其看起来像这样。我同意表格可能不是解决这个问题的最佳方案 <table class="layout-table"> <tr> <td><strong>3. Has the person completed a

我不知道如何标记a和b,而且如果我将按钮设置在列的右侧,那么它会将其一直分隔到最右侧,我不知道为什么。。。。这是否可以在没有CSS的情况下实现?如果不是,那么CSS也可以。谢谢你的帮助

您可能希望对其进行标记,使其看起来像这样。我同意表格可能不是解决这个问题的最佳方案

    <table class="layout-table">
    <tr>
        <td><strong>3. Has the person completed all required training within the past three years?</strong><br/><br/></td>
    </tr>
    <tr>
        <td><strong>a. Copy of It</strong>
            <p:selectOneRadio id="radio3" value="#{question3a}">
                <f:selectItem itemLabel="Yes" itemValue="0" />&#160;&#160;&#160;
                <f:selectItem itemLabel="No" itemValue="1" />&#160;&#160;&#160;
                <f:selectItem itemLabel="NA" itemValue="2" />&#160;&#160;&#160;
            </p:selectOneRadio>
            <br/>
            <h:outputText id="counter3" />
        </td>
    </tr>
  </table>

3。该人员是否在过去三年内完成了所有要求的培训?
   
   
   
   
   
   

这看起来像是一个作业,而不是表。嵌套有序列表,不少于;它肯定类似于一些非表格信息。@DavidThomas是的,你说得对,嵌套有序列表是一种解决问题的方法。是的,表格是很棘手的事情,对于某些事情来说非常方便,比如在页面上以css为中心进行缩放。但是对于其他事情,比如你想要什么,你最好使用上面的建议。不能缩进表格的一部分;表始终是由行和单元格组成的网格。另一件事是,桌子总是根据里面的东西进行缩放。如前所述,对居中很方便,但如果你想找一个像标签一样的自定义布局,就不方便了。好的,谢谢大家!我猜桌子不是这样的:P。谢谢!!!我很高兴能帮上忙!祝你好运
<table class="layout-table">
   <tr>
      <td><strong>3. Has the person completed all required training within the past three years?</strong> 
   </tr>
   <tr>
      <td>
         <table width="600" cellpadding="0" cellspacing="0" border="0" style="margin: 0 auto;">
            <tr>
               <td>
                  <p:selectOneRadio id="radio3" value="#{question3a}">
                     <f:selectItem itemLabel="Yes" itemValue="0" />&#160;&#160;&#160;
                     <f:selectItem itemLabel="No" itemValue="1" />&#160;&#160;&#160;
                     <f:selectItem itemLabel="NA" itemValue="2" />&#160;&#160;&#160;
                  </p:selectOneRadio>
               </td>
            </tr>
            <tr>
               <td>
                  <p:selectOneRadio id="radio3" value="#{question3a}">
                     <f:selectItem itemLabel="Yes" itemValue="0" />&#160;&#160;&#160;
                     <f:selectItem itemLabel="No" itemValue="1" />&#160;&#160;&#160;
                     <f:selectItem itemLabel="NA" itemValue="2" />&#160;&#160;&#160;
                  </p:selectOneRadio>
               </td>
            </tr>
         </table>
      </td>
   </tr>
</table>