Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/235.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/CSS中添加滚动条_Php_Css - Fatal编程技术网

在PHP/CSS中添加滚动条

在PHP/CSS中添加滚动条,php,css,Php,Css,如何将滚动条添加到数据库输出的信息中: 即: 代码: 如何将滚动条添加到输出的右侧并使其向下滚动以查看显示的所有数据?试试这个 .scroll { width: 100px; height: 100px; overflow: scroll; } 这是试试这个 .scroll { width: 100px; height: 100px; overflow: scroll; } 这是试试这个: .scroll { overflow-y: s

如何将滚动条添加到数据库输出的信息中:

即:

代码:

如何将滚动条添加到输出的右侧并使其向下滚动以查看显示的所有数据?

试试这个

.scroll {
    width: 100px;
    height: 100px;
    overflow: scroll;
}
这是

试试这个

.scroll {
    width: 100px;
    height: 100px;
    overflow: scroll;
}
这是

试试这个:

.scroll {
    overflow-y: scroll;
    width: 200px;
    height: 200px;
}
您不希望
溢出:滚动除非您还需要水平滚动条。你还需要给它一个宽度和高度。

试试这个:

.scroll {
    overflow-y: scroll;
    width: 200px;
    height: 200px;
}

您不希望
溢出:滚动除非您还需要水平滚动条。您还需要给它一个宽度和高度。

这将滚动条直接放在信息的顶部而不是侧面,因此信息不可滚动这将滚动条直接放在信息的顶部而不是侧面,因此信息不可滚动这将滚动条直接放在信息的顶部而不是侧面,因此信息不可滚动..此编码正在工作。如果这不是您期望的结果,请详细解释。然后添加
。将
类滚动到
div
in while loop not in
p
tag这将滚动条直接放在信息顶部,而不是侧面,因此信息不可滚动。此编码正在工作。如果这不是您期望的结果,请详细解释。然后添加
。将
类滚动到
div
中,而循环不在
p
标记中
.scroll {
    overflow-y: scroll;
    width: 200px;
    height: 200px;
}