Javascript 如何重新加载div?

Javascript 如何重新加载div?,javascript,php,html,css,Javascript,Php,Html,Css,您好,这是一个div,其中包含我希望每x秒刷新一次的聊天内容,但是当我使用ajax进行刷新时,页面的样式将不会流入新请求的代码中,还有其他可能性吗 看: 你能展示你的JS代码吗?是的,当然我会发布你用jquery做ajax吗?如果没有,请发布您的js代码。@PwterGemul和英文? <div id="memberschatcntnr" style="width: 529px; height: 450px; background-color: white; border-top : 3

您好,这是一个div,其中包含我希望每x秒刷新一次的聊天内容,但是当我使用ajax进行刷新时,页面的样式将不会流入新请求的代码中,还有其他可能性吗

看:



你能展示你的JS代码吗?是的,当然我会发布你用jquery做ajax吗?如果没有,请发布您的js代码。@PwterGemul和英文?
<div id="memberschatcntnr" style="width: 529px; height: 450px; background-color: white; border-top : 3px solid black; border-bottom: 3px solid black; margin-top: 10px; margin-left: 10px; border-radius: 10px;">
    <?php include('memberschat.php'); ?>
</div>
<form action="memberschatprocess.php" target="hiddenform" method="post" id="form">
    <input style="display: none;" id="formname" name="formname" value="<?php @$name=$_GET["name"]; echo $name; ?>" />
    <input name="formcoment" onkeypress="validar(event)" type="text" style="width: 519px; padding-left: 10px; margin-left: 10px; margin-top: 25px; border-radius: 10px; box-shadow: inset 0px 0px 3px gray; height: 40px; border: none; font-size: 120%; outline: none; background-color: #E1E1E1;" />
</form>

<iframe style="display: none;" name="hiddenform"></iframe>