简体   繁体   English

如何在网页上增加 github gist 的高度?

[英]How to increase the height of a github gist on webpage?

Following other questions on here, I have managed to increase the size of the gist window embedded on my webpage, but the data within the window doesn't increase, as see in the image below.在这里提出其他问题后,我设法增加了嵌入我网页上的要点 window 的大小,但 window 中的数据没有增加,如下图所示。 I am using CSS to increase the height:我正在使用 CSS 来增加高度:

.gist-data {
    height: 800px;
}

The below image shows the result of this, where the window height increases but just with white space at the bottom.下图显示了此结果,其中 window 高度增加,但底部只有空白。 Does anyone know how I can increase the height of the data within the window as well?有谁知道我如何也可以增加 window 中的数据高度?

在此处输入图像描述

Use the following CSS:使用以下 CSS:

.gist {
   overflow:auto;
}

.gist .blob-wrapper.data {
   max-height:800px;
   overflow:auto;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM