如何以百分比设置 twitter 的嵌入式时间线宽度(响应式/流畅设计) [英] How to set up twitter's embedded timeline width in percentage (responsive/fluid design)

查看:18
本文介绍了如何以百分比设置 twitter 的嵌入式时间线宽度(响应式/流畅设计)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置 twitter 的嵌入式时间线,当你有一个固定的设计,但这不是我的情况,我实际上是在为新网站构建流畅且响应式的设计.

I'm looking to set up twitter's embedded timeline, it's quite easy when you're having a fixed design, but that's not my case and I'm actually building a fluid and responsive design for a new website.

我的问题是,我如何设置 twitter 的嵌入式时间线,因为它是 iframe 和你应该在你的推特账户中设置 px 吗?

My question is, how can I set up twitter's embedded timeline with a fluid width since its an iframe and you're supposed to set up the with in px in your twitter account ?

谢谢:)

推荐答案

感谢大家,我找到了解决方案:这几乎和缺乏所说的一样,但我们不得不把注意力集中在 iframe 上:

Thanks to all of you I found my way through: It was almost as lack said, but we had to focus on the iframe instead:

.MyClassForTheDivThatContainTheiFrame iframe{
    width:100%;
}

当然 .MyClassForTheDivThatContainTheiFrame 也是具有 % 宽度的流体

of course .MyClassForTheDivThatContainTheiFrame is also fluid with a % width

这篇关于如何以百分比设置 twitter 的嵌入式时间线宽度(响应式/流畅设计)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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