日期:2014-05-17  浏览次数:20451 次

关于PHP代码生成文本框的位置问题
我在php项目中有段代码是echo出一个隐藏文本框
PHP code

echo "<input name='ids' id='ids' type='hidden' value='$s'>";



但是刷新页面时,这个文本框的位置出现在页面声明前,影响了整个页面样式的显示
HTML code

<input name='ids' id='ids' type='hidden' value='749,748,747,728,727,726,750,744,743,'> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">



请问:有什么办法可以调整这个隐藏文本框出现的位置吗?谢谢!

------解决方案--------------------
你把他放到页面声明的下面么,放到BODY里面,就看不见了。
------解决方案--------------------
<html>
<body>
<input type=hidden value=<?=$s?> name=ids id=ids>
</body>
</html>