Javascript 如何水平显示内容?

Javascript 如何水平显示内容?,javascript,php,html,Javascript,Php,Html,我正在使用PHP会话。我没有得到水平显示。我该怎么做 PHP: if(isset($_GET['nome']) && $_GET!=['nome']){ $lista_tarefa = array(); $lista_tarefa['nome'] = $_GET['nome']; } if(isset($_GET['descricao'])){ $lista_tarefa['descricao'] = $_GET['descr

我正在使用PHP会话。我没有得到水平显示。我该怎么做

PHP:

if(isset($_GET['nome']) && $_GET!=['nome']){
    $lista_tarefa = array();
    $lista_tarefa['nome'] = $_GET['nome'];
    }



    if(isset($_GET['descricao'])){
        $lista_tarefa['descricao'] = $_GET['descricao'];
    } else {
        $lista_tarefa['descricao'] = '';
    }
<table>

      <?php foreach ($lista_tarefa as $tarefa) : ?>

           <tr>
               <td> <?php echo $tarefa; ?> </td>
            </tr>

       <?php endforeach; ?>

</table>
PHP+HTML:

if(isset($_GET['nome']) && $_GET!=['nome']){
    $lista_tarefa = array();
    $lista_tarefa['nome'] = $_GET['nome'];
    }



    if(isset($_GET['descricao'])){
        $lista_tarefa['descricao'] = $_GET['descricao'];
    } else {
        $lista_tarefa['descricao'] = '';
    }
<table>

      <?php foreach ($lista_tarefa as $tarefa) : ?>

           <tr>
               <td> <?php echo $tarefa; ?> </td>
            </tr>

       <?php endforeach; ?>

</table>

我想

    $a=0;
        while($a<=3){
        foreach ($lista_tarefas as $tarefa): 
        echo $tarefa[a];
        if($a<=3){
          ????
        }
        $a++;

    }
$a=0;

虽然($ato在一行中显示数据只需在行内执行
tr
。此页面有更多关于html表格工作原理的信息。谢谢!但现在还有另一个问题,哈哈。我想添加5个点并在hrozintal中显示。好的。但我想再添加5个,然后再添加5个,然后再添加5个在,它显示所有的水平线。当我再加上5个值时,希望同样的值出现在下一行。我该怎么做?