CSS:溢出:滚动;不出现

CSS:溢出:滚动;不出现,css,scroll,overflow,Css,Scroll,Overflow,编辑:回答如下: 我的溢出滚动条未出现在My results page.php中。我已经检查了一些错误,比如没有在课堂上注明身高,但我什么也没有得到。也许是php把事情搞砸了 你可以亲自到这里来看看这个问题 在安特里姆寻找1000欧元以下的自行车 下面是CSS类: .textarea { height: 848px; padding-right: 20px; padding-left: 20px; list-style: none; overflow:scroll; position:rel

编辑:回答如下:

我的溢出滚动条未出现在My results page.php中。我已经检查了一些错误,比如没有在课堂上注明身高,但我什么也没有得到。也许是php把事情搞砸了

你可以亲自到这里来看看这个问题 在安特里姆寻找1000欧元以下的自行车

下面是CSS类:

.textarea

{
height: 848px;
padding-right: 20px;
padding-left: 20px;
list-style: none;
overflow:scroll;
position:relative;

}
下面是一些HTML:

<section class="section">

<div class="textarea">
<h1>Search</h1>

<?php
if($_SERVER['REQUEST_METHOD']=='POST')
{
include("db_connect.php"); 

$sql = "SELECT brand,model,type,town,location,university,price,cond,description FROM       placead WHERE price < ? AND location = ?";
if($stmt = $link->prepare($sql))
{
$stmt->bind_param('is', $_POST['price'], $_POST['location']);
$stmt->execute();
$stmt- >bind_result($brand,$model,$type,$town,$location,$university,$price,$condition,$description    );


/* store result */
$stmt->store_result(); //required to get num_rows   
echo"==============================================================";
echo "<br/>";
echo "<br/>";
printf("Your search returned : %d records <br/>", $stmt->num_rows);
echo "<br/>";
echo"==============================================================";

/* fetch values */
while ($stmt->fetch()) {
echo "<br />Price.................................".$price." Euro.";
echo "<br />location..............................".$location;
echo "<br />Brand.................................".$brand;
echo "<br />Model.................................".$model;
echo "<br />Type..................................".$type;
echo "<br />Town..................................".$town;
echo "<br />University............................".$university;
echo "<br />Condition.............................".$condition;
echo "<br/>";
echo "<br/>";
echo "<br />                Description           ";
echo "<br/>";
echo "<br/>".$description;
echo "<br/>";
echo"==============================================================";
}   
//close the crecordset
$stmt->close();
}
$link->close();
}
else {
?>
// contd......

搜索
//续。。。。。。

我没有看到任何错误。我在这里创建了一个JSFIDLE,其中包含一个具有相同CSS属性的文本框:


显示呈现的html,而不是php代码。呈现的html在“查看源代码”中非常混乱。页面在这里:只需使用location='Antrim'和price<1000“Roscommon/option>”进行搜索-您在这行中没有一个括号谢谢po4teda!原始问题仍然存在。完整代码在这里:Handy站点。
#limit_height
{
    width: 200px;
    height:300px;
    overflow: scroll;
    position:relative;
    padding-left:15px;
    padding-right:15px;
}