【问题标题】:Is there a way to specify the width of an embedded gist?有没有办法指定嵌入式要点的宽度?
【发布时间】:2013-03-10 05:44:55
【问题描述】:

我正在尝试将要点嵌入网页中。以下面的要点为例:

<script src="https://gist.github.com/Astr0surf3r/5208714.js"></script>

我想知道是否有办法设置要点的宽度。例如,我想让 gist 比默认宽度窄。

【问题讨论】:

    标签: html github gist


    【解决方案1】:

    您可以通过修改此 gist 使用的 CSS 类来控制宽度。

    .gist { width: 250px; }
    

    示例:http://jsfiddle.net/aFwEd/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-04-10
      • 2011-01-28
      • 2019-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多