我刚刚搜索了文档以找到它,我删除了<hr class="cmdbar"></hr>
但它仍然存在!你们有没有看到别的什么?
<?php print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<font face="Segoe UI">
<body>
<script type="text/javascript">
/*function detectBrowser()
{
var browser = navigator.appCodeName;
if (browser!="Mozilla") {document.location.href="noaccess.php"; alert(browser);}
}
detectBrowser();
*/
</script>
<title>Second</title>
<link rel="stylesheet" type="text/css" href="allCSS.css"/>
<center>
<!--<img align="right" src="logo.png" id="headerimg"/>-->
<input type="image" id="headerimg" src="logo.png" align="right" onclick="toggleh();"/>
<ul align="center" class="">
<div class="menu">
<ul class="nav">
<li><strong><a href="index.php">Home</a></strong>
<ul>
<li><a href="games.php">Games</a></li>
<li><a href="browse.php">Browse</a></li>
<li><a href="catalogue.php">Catalogue</a></li>
<li><a href="forum.php">Forums</a></li>
</ul>
</li>
<li><strong><a href="games">Games</a></strong>
<ul>
<li><a href="profile.php">Profile</a></li>
<li><a href="settings.php">Settings</a></li>
</ul>
</li>
<li><strong><a href="contact">Contact</a></strong>
<ul>
<li><a href="contact/index.php">Phone</a></li>
<li><a href="contact/index.php">Email</a></li>
<li><a href="contact/index.php">Mail</a></li>
</ul>
</li>
</div>
</center>
</body>
<center>
<?php
echo '<div id="msg">';
include 'message.txt';
echo '</div>';
//include 'hits.txt';
?>
<p>
<?php
function ChangeText($txt)
{
$txt='<script type="text/javascript">get();</script>';
echo '<script type="text/javascript">change();</script>';
$filename="message.txt";
$fp=fopen($filename,'w');
fwrite($fp,'<h4 class="hmsg">' . $txt . '</h4>');
fclose($fp);
}
?>
<script type="text/javascript">
<!--
window.onload=enter;
function enter()
{
//alert("Welcome!");
//hideCMD();
}
function get(text)
{
text=document.getElementById("ta").value;
return text;
}
function toggleh()
{
var element=document.getElementById("headerimg");
if (element.style.display!="none"){element.style.display="none";}
else {element.style.display="";}
}
function change(text)
{
text=document.getElementById("ta").value;
if (text=="toggle") {toggleh(); return;}
if (text=="home") {document.location.href="index.html"; return;}
if (text.match("goto:*")) {var loc=text.substring(5,text.length); document.location.href=loc; return;}
if (text.match("ban:*")) {var loc=text.substring(4,text.length); document.location.href=loc; return;}
document.getElementById("msg").innerHTML='<h2 class="hmsg">'+text+'</h2>';
}
function hideCMD()
{
document.getElementById("cmd").style.display="none";
}
//-->
</script>
</head>
<body>
<div id="msg">
</div>
<p id="cmd">
<input class="panela" type="text" value="" id="ta" maxLength="20"/>
<input class="panelb" type="image" src="submit.png" alt="Submit" onclick='change();'/>
</p>
</center>
<p class="hide">-</p>
</font>
</html>
答案 0 :(得分:10)
此处为<hr class="cmdbar"></hr>
,第126行。 CTRL + F通常适用于大多数文本编辑器。
答案 1 :(得分:2)
这是:
<p id="cmd">
<hr class="cmdbar"></hr>
<input class="panela" type="text" value="" id="ta" maxLength="20"/>
<input class="panelb" type="image" src="submit.png" alt="Submit" onclick='change();'/>
</p>
浏览器确实将<hr></hr>
视为正确<hr />
,但根据W3C规范,这不应该是这样。
答案 2 :(得分:1)
您也可以使用Firebug for Firefox。这是一个简洁的附加组件,可以帮助您根据网页的外观找到代码。