Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/262.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 结束标记_Php_Html_Css - Fatal编程技术网

Php 结束标记

Php 结束标记,php,html,css,Php,Html,Css,固定的。是由其他地方的表标记引起的这有效吗 echo "<table><tr><td>".$variable."</td><td>$".$variable."</td> <td><form method='post'><input type='hidden' name='bet_id' value='".$variable."' /><input type='submit'

固定的。是由其他地方的表标记引起的

这有效吗

echo "<table><tr><td>".$variable."</td><td>$".$variable."</td>
    <td><form method='post'><input type='hidden' name='bet_id' value='".$variable."' /><input type='submit' name='take_cash' value='Take Bet' /></form></td></tr></table>";
    }

请参阅附带的代码和渲染输出的屏幕截图。唯一不同于我的代码和你的代码的是css,可能是内联和块级元素的混合?b您的数据库记录和自定义功能,可能还有c浏览器版本。我会在那里寻找答案。这就是我在Chrome 31版和Mac上最新的Firefox上看到的,我想这就是你想要的

<div class='floatl' style='width: 50%;'>
<div class='contenthead'>50/50 Cash</div>
<div class='contentcontent'><table>
<?
    $i = 0;

    while($i < 10){
    echo "<tr><td>turtle</td><td>$monnnnnnaay</td>
    <td><form method='post'><input type='hidden' name='bet_id' value='snapple' /><input type='submit' name='take_cash' value='Take Bet' /></form></td></tr>";
    $i++;
    }

?>          
</table>

<form method='post'>
    <p>Wager: $ <input type='number' min='10000' max='1000000' step='10000' value='10000' name='cash' /></p>
    <span style='font-size:11px;color:#999;'>Minimum wager: $10,000</span><br />
    <p style='padding: 1px;'>Confirm: <input type='submit' name='post_cash' value='Place Bet' /></p>
</form>
</div>
</div>

你有演示链接吗?你能把解析过的HTML贴出来吗?把网页浏览一遍。具有这样的标记跳转位置块通常是文档中其他位置标记被破坏的迹象。验证器会告诉你bug在哪里。你是否尝试过style='display:table',但没有看到实际的HTML输出和/或秘密的PHP内容,很难猜测这里发生了什么。问题的完整源代码已经添加了echo在一个while循环内,所以table标记需要在它之外,但不,它没有,仍然导致容器关闭!