有没有办法指定嵌入的要点的宽度? [英] Is there a way to specify the width of an embedded gist?

查看:142
本文介绍了有没有办法指定嵌入的要点的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在网页中嵌入一个要点。举例如下:

5208714.js>< /脚本>

我想知道是否有办法设置要点的宽度。例如,我希望使这个要点比默认宽度窄。

解决方案

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

  .gist {width:250px; } 

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


I am trying to embed a gist into a webpage. Take the gist below as an example:

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

I wonder if there is a way to set the width of the gist. For example, I would like to to make the gist narrower than the default width.

解决方案

You can control the width by modifying the CSS class that this gist is using.

.gist { width: 250px; }

Example: http://jsfiddle.net/aFwEd/

这篇关于有没有办法指定嵌入的要点的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆