English 中文(简体)
如何打上编号或子弹?
原标题:How to put numbering or bullets?

我很想知道,我怎么能够把子弹放在我的桌上。 下面的缩略语与主要准则清单相呼应。

页: 1

1. major1
   a. sub1
   b. sub2
   c. sub3
2. major2
   a. sub1
   b. sub2
   c. sub3

类似情况。

<table width="594" height="82" cellpadding="3" bordercolor="#999999">
    <tr>
      <td width="38" height="20" bgcolor="#333333" scope="col"><span class="style30"></span></td>
      <td width="234" bgcolor="#333333" scope="col"><div align="center" class="style31">Behavioral Guidelines</div></td>
      <td colspan="4" bgcolor="#333333" scope="col"><div align="left" class="style31">
          <div align="center">Style</div>
      </div></td>
      <td scope="col">&nbsp;</td>
    </tr>
    <?php while($row = mysql_fetch_array($result2)){?>
    <tr>
      <td height="24" valign="top" bgcolor="#FFFFCC"><div align="center" class="style7">Major</div></td>
      <td valign="top" bgcolor="#FFFFCC"><div align="left"><span class="style29"><?php echo $row[ majorBg ];?></span></div></td>
      <td width="17" valign="top" bgcolor="#FFFFCC"><div align="center"><span class="style15"><?php echo $row[ msg ];?></span></div></td>
      <td width="17" valign="top" bgcolor="#FFFFCC"><div align="center"><span class="style15"><?php echo $row[ mct ];?></span></div></td>
      <td width="17" valign="top" bgcolor="#FFFFCC"><div align="center"><span class="style15"><?php echo $row[ mch ];?></span></div></td>
      <td width="17" valign="top" bgcolor="#FFFFCC"><div align="center"><span class="style15"><?php echo $row[ mad ];?></span></div></td>
      <td width="194" valign="top" bgcolor="#FFFFCC"><span class="style24"><a href="sub.php?major_id=<? echo $row[ major_id ]; ?>" class="style22" >+ add sub guidelines (optional)</a></span></td>
    </tr>
    <? $sqlCommand="select * from sub_guidelines where major_id =". $row[ major_id ];
    $sql1 = mysql_query($sqlCommand) or die (mysql_error()); 
    while($row1 = mysql_fetch_array($sql1))
     {?>
    <tr>
      <td height="2"><div align="center"><span class="style7">Sub</span></div></td>
      <td height="2"><div align="left"><span class="style15"><?php echo $row1[ subBg ];?></span></div></td>
      <td height="2" class="style15"><div align="center"><?php echo $row1[ ssg ];?></div></td>
      <td height="2" class="style15"><div align="center"><?php echo $row1[ sct ];?></div></td>
      <td height="2" class="style15"><div align="center"><?php echo $row1[ sch ];?></div></td>
      <td height="2" class="style15"><div align="center"><?php echo $row1[ sad ];?></div></td>
      <td height="2" class="style15"><div align="left"></div></td>
      <?php } ?>
    </tr>
    <?php } ?>
    <?php mysql_close($con) ?>
  </table>

结果是:

1. major1
     a. sub1
     a. sub2
     a. sub3
1. major2
     a. sub1
     a. sub2
     a. sub3

他们的人数与主要和次。

问题回答

你可以通过下述超文本来做到这一点。 视需要调整你的购买力平价,以取得以下产出。

<ol>
    <li>major1
    <ol type="a">
        <li>sub1
        <li>sub2
        <li>sub3
    </ol>
    <li>major2
    <ol type="a">
        <li> sub1
        <li> sub2
        <li> sub3
    </ol>
</ol>

你们可以通过没有顺序的清单或命令的名单这样做。 这一红.帮助。

http://www.mediacollege.com/internet/css/ul-list.html





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签