【问题标题】:Can I force the narrow layout on Twitter's official widget?我可以在 Twitter 的官方小部件上强制缩小布局吗?
【发布时间】:2014-04-26 06:44:47
【问题描述】:

我注意到,当 Twitter 的嵌入式时间线为 318 像素或更大时,它们会进入更宽的布局。我更喜欢窄版,想知道是否有办法强制我的小部件保持该布局,即使它的宽度超过 318 像素。

在 Chrome Inspector 中,小部件的主体具有:

class="root timeline ltr customisable-border  
twitter-timeline not-touch twitter-timeline-rendered var-narrow"

当小部件宽度超过 318 像素时,它会失去 var-narrow 类。我可以让那个班级留下来吗?

【问题讨论】:

  • 我什至无法复制这个。你能提供一个可行的例子吗? (当我尝试它时,我在小部件主体上看不到这些类,并且布局在 300 - 400 范围内没有变化)。

标签: html css iframe twitter


【解决方案1】:

我遇到了同样的问题。这就是我修复它的方法:

#twitter-widget-0 {
    max-width: 317px !important;
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多