【问题标题】:html page ends half and doesn't scrollhtml页面结束一半并且不滚动
【发布时间】:2020-09-12 00:48:51
【问题描述】:

我是 html 和 css 的新手,我试图构建一个报告页面来显示不同的脚本输出。不幸的是,我的页面仅显示一半带有滚动条,但我希望输出显示在没有滚动条的主页中。如果有人能提出错误或遗漏的建议,那就太好了。

* {
          margin: 0;
          padding: 0;
}

html {
        background-color: #fff;
        color: #555;
        font-family: 'Lato', 'Arial', sans-serif;
        font-weight: 100;
        font-size: 13px;
        overflow-y: visible;
}


table { border-collapse: collapse; } td { font-family:Verdana; font-size:11; vertical-align:center; } th { height:7px;font-family:Verdana; font-si
ze:11; font-style:bold; background-color:#81DAF5 }


.firstsec {
        margin-left: auto;
        margin-right: auto;
        padding-top: 0;
        overflow-y: visible;
        max-width: 1140px;
        background-size: 650px;
        background-image: url(Backup_logo.jpg);
        background-position: center;
        height: 20vh;
}

.toptext  {
        border: 0;
        background-color: #5E10B1;
        color: white;
        width: 25%;
        height: 20vh;
        font-size: 14px;
        text-align: center;
        float: right;
}

.logo {
        margin: 5px;
        width: 22%;
        height: 40px;
        float: left;
}

.section {
        margin-left: auto;
        margin-right: auto;
        width: 1140px;
        overflow-y: visible;
        top: 0; right: 0; bottom: 0; left: 0;

【问题讨论】:

    标签: html css scroll height overflow


    【解决方案1】:

    在我的 html 页面中更新结束标记后,我得到了解决。

    【讨论】:

      猜你喜欢
      • 2012-05-05
      • 2016-05-25
      • 1970-01-01
      • 2020-02-05
      • 1970-01-01
      • 2021-04-19
      • 1970-01-01
      • 1970-01-01
      • 2020-08-23
      相关资源
      最近更新 更多