Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.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
HTML页面不滚动_Html - Fatal编程技术网

HTML页面不滚动

HTML页面不滚动,html,Html,我对HTML非常陌生,我决定制作一个小的注册页面作为练习。由于某些原因,它不会滚动(没有滚动条,只是在屏幕底部被切断)。可以在此处找到HTML代码:。我有一种预感,这个问题的原因是 table-layout:fixed 但是如果没有这一行,我就无法使我的列大小相等。如何修复此问题?您应该将位置更改为相对位置,而不是固定位置,如下所示: <table style="width:300px; position:relative; top:300px; left:200px; table-la

我对HTML非常陌生,我决定制作一个小的注册页面作为练习。由于某些原因,它不会滚动(没有滚动条,只是在屏幕底部被切断)。可以在此处找到HTML代码:。我有一种预感,这个问题的原因是

table-layout:fixed

但是如果没有这一行,我就无法使我的列大小相等。如何修复此问题?

您应该将位置更改为相对位置,而不是固定位置,如下所示:

<table style="width:300px; position:relative; top:300px; left:200px; table-layout:fixed;">

您应该将位置更改为相对位置,而不是固定位置,如下所示:

<table style="width:300px; position:relative; top:300px; left:200px; table-layout:fixed;">

将工作台位置更改为:

相对的

<table style="width:300px; min-height: 100px; position:relative; top:300px; left:200px; table-layout:fixed;">
<table style="width:300px; min-height: 100px; position:absolute; top:300px; left:200px; table-layout:fixed;">

绝对值

<table style="width:300px; min-height: 100px; position:relative; top:300px; left:200px; table-layout:fixed;">
<table style="width:300px; min-height: 100px; position:absolute; top:300px; left:200px; table-layout:fixed;">

编辑:

查看这些以查看
位置
值之间的差异


将工作台位置更改为:

相对的

<table style="width:300px; min-height: 100px; position:relative; top:300px; left:200px; table-layout:fixed;">
<table style="width:300px; min-height: 100px; position:absolute; top:300px; left:200px; table-layout:fixed;">

绝对值

<table style="width:300px; min-height: 100px; position:relative; top:300px; left:200px; table-layout:fixed;">
<table style="width:300px; min-height: 100px; position:absolute; top:300px; left:200px; table-layout:fixed;">

编辑:

查看这些以查看
位置
值之间的差异


在JDFIDLE的代码中有一个孤儿
@SERPRO感谢您指出它,删除了它!在JDFIDLE的代码中有一个孤儿
@SERPRO感谢您指出它,删除了它!