Php 刷新页面后自动向下滚动文本区域

Php 刷新页面后自动向下滚动文本区域,php,html,Php,Html,我有一个显示程序日志的脚本,我尝试添加标题(“refresh:5;url=wget_log.php#bottomof page”)但它仍然不会向下滚动到文本区域的底部。这是我的剧本: <?php header("refresh: 5;url=wget_log.php#bottomOfPage"); include 'theme.php'; ceklogin(); css(); echo " Wget log :<br>"; echo "<textarea name=\"b

我有一个显示程序日志的脚本,我尝试添加
标题(“refresh:5;url=wget_log.php#bottomof page”)但它仍然不会向下滚动到文本区域的底部。这是我的剧本:

<?php
header("refresh: 5;url=wget_log.php#bottomOfPage");
include 'theme.php';
ceklogin();
css();
echo " Wget log :<br>";
echo "<textarea name=\"bottomOfPage\" rows=\"30\" cols=\"90\" readonly style=\"font-family: Arial;font-size: 7pt;\" >";
$datalines = file ("wget.log");
foreach ($datalines as $zz) {
echo $zz; }
echo "</textarea></div>";
foot();
echo '

</div>
</body>
</div>
</html>';
?>

这里的网页看起来像,抱歉,我仍然不允许直接在stackoverflow上显示图像,所以我只给你图像的链接:

@Magictallguy我修改了脚本如下:

<?php
header("refresh: 5;url=wget_log.php#bottomOfPage");
include 'theme.php';
ceklogin();
css();
echo " Wget log :<br>";
echo "<textarea name=\"text-info\" rows=\"30\" cols=\"90\" readonly style=\"font-family: Arial;font-size: 7pt;\" >";
$datalines = file ("wget.log");
foreach ($datalines as $zz) {
echo $zz; }
echo "<span id=\"bottomOfPage\">&nbsp;</span>"
echo "</textarea></div>";
foot();
echo '

</div>
</body>
</div>
</html>';
?>

但是它仍然不会向下滚动。

您需要在页面底部的某个位置添加
id=“bottomOfPage”


或者,更准确地说,在您的
标签之前添加
,我尝试了
echo”“但仍然不起作用请查看我的更新帖子,它仍然不想向下滚动