duanjiu4498 2014-02-12 20:09
浏览 69
已采纳

php echo div class不工作[关闭]

I am trying to echo a div class <div class="Box"> but not working. Can anyone help? Thanks.

     echo '<div class="Box">

     echo Anchor(T('Edit My Account'), '/profile/edit', FALSE, array('class' => 'Popup EditAccountLink'));
     echo "<br />";
     echo Anchor(T('Change My Password'), '/profile/password', FALSE, array('class' => 'Popup PasswordLink'));
     echo "<br />";

     $Inbox = 'Inbox';
     $CountUnreadConversations = $Session->User->CountUnreadConversations;
     if (is_numeric($CountUnreadConversations) && $CountUnreadConversations > 0)
     $Inbox .= ''.$CountUnreadConversations.'';
     echo Anchor(T('Inbox'), '/messages/all', 'Inbox');

     </div>'
  • 写回答

4条回答 默认 最新

  • dqde43215 2014-02-12 20:12
    关注

    Your first and last lines are wrong, missing proper quotation marks and also an echo on the last line. It should be:

    echo '<div class="Box">';
    
     .... rest of code here...
    
    echo '</div>';
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?