第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何在保留回復(fù)的同時移動我的評論?

如何在保留回復(fù)的同時移動我的評論?

PHP
慕桂英3389331 2021-07-02 10:11:01
我正在嘗試創(chuàng)建一個評論系統(tǒng),用戶可以在其中發(fā)表評論,然后其他用戶可以回復(fù)這些評論。我希望實際帖子位于頁面左側(cè),評論位于右側(cè),這樣用戶就不必滾動瀏覽實際帖子來閱讀評論。我試過使用 position: absolute ,但這會干擾我的回復(fù)系統(tǒng)。有誰知道一個更簡單的方法來做到這一點?我的代碼while ($commentrow = mysqli_fetch_assoc($commentresult)) {                        if (mysqli_num_rows($commentresult)==0) {                            echo '';                        }                        else {                            $commenterid = $commentrow['userid'];                            $commentersql = "SELECT * FROM users WHERE userid = '$commenterid'";                            $commenterresult = mysqli_query($conn, $commentersql);                            while ($commenterrow = mysqli_fetch_assoc($commenterresult)) {                                echo     '<div class="PostComments">';                                    if ($commenterrow['profileimg'] == 1) {                                        $filename = "profilepics/profile".$commenterid."*";                                        $fileinfo = glob($filename);                                        $fileext = explode(".", $fileinfo[0]);                                        $fileactualext = $fileext[1];                                        echo "<div class='CommentProfilePicture'><img src='profilepics/profile".$commenterid.".".$fileactualext."?".mt_rand()."'></div>";                                    }                                    else {                                        echo "<div class='CommentProfilePicture'><img src='profilepics/noUser.png'></div>";                                    }                                echo     "<div class='CommentUserName'>".$commenterrow['userName']."</div>";                                echo    "<div class='CommenterComment'>".$commentrow['comment']."</div> </div>";                            }如果您有任何問題,我將非常樂意為您解答。
查看完整描述

1 回答

?
侃侃爾雅

TA貢獻1801條經(jīng)驗 獲得超16個贊

在評論和回復(fù)上創(chuàng)建一個 div 標簽。


查看完整回答
反對 回復(fù) 2021-07-09
  • 1 回答
  • 0 關(guān)注
  • 128 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號