• <bdo id='A3mim'></bdo><ul id='A3mim'></ul>

      1. <legend id='A3mim'><style id='A3mim'><dir id='A3mim'><q id='A3mim'></q></dir></style></legend><tfoot id='A3mim'></tfoot>
      2. <i id='A3mim'><tr id='A3mim'><dt id='A3mim'><q id='A3mim'><span id='A3mim'><b id='A3mim'><form id='A3mim'><ins id='A3mim'></ins><ul id='A3mim'></ul><sub id='A3mim'></sub></form><legend id='A3mim'></legend><bdo id='A3mim'><pre id='A3mim'><center id='A3mim'></center></pre></bdo></b><th id='A3mim'></th></span></q></dt></tr></i><div id='A3mim'><tfoot id='A3mim'></tfoot><dl id='A3mim'><fieldset id='A3mim'></fieldset></dl></div>

        <small id='A3mim'></small><noframes id='A3mim'>

      3. 用于 Twitter 小部件宽度的 HTML/CSS

        时间:2023-09-07
                <bdo id='XEDK7'></bdo><ul id='XEDK7'></ul>
              • <legend id='XEDK7'><style id='XEDK7'><dir id='XEDK7'><q id='XEDK7'></q></dir></style></legend>

                <tfoot id='XEDK7'></tfoot>

                  <i id='XEDK7'><tr id='XEDK7'><dt id='XEDK7'><q id='XEDK7'><span id='XEDK7'><b id='XEDK7'><form id='XEDK7'><ins id='XEDK7'></ins><ul id='XEDK7'></ul><sub id='XEDK7'></sub></form><legend id='XEDK7'></legend><bdo id='XEDK7'><pre id='XEDK7'><center id='XEDK7'></center></pre></bdo></b><th id='XEDK7'></th></span></q></dt></tr></i><div id='XEDK7'><tfoot id='XEDK7'></tfoot><dl id='XEDK7'><fieldset id='XEDK7'></fieldset></dl></div>

                  <small id='XEDK7'></small><noframes id='XEDK7'>

                    <tbody id='XEDK7'></tbody>

                • 本文介绍了用于 Twitter 小部件宽度的 HTML/CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Twitter 提供的用于粘贴到 html 中的代码如下所示:

                  The code Twitter gives you to paste in the html looks like this:

                  <a class="twitter-timeline" href="https://twitter.com/username" data-widget-id="248169276782018560">Tweets by @username</a>
                  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
                  

                  它们允许您设置一个高度,我将其设置为 600.当放置在我的网站上时,我得到了这个(查看源代码时):

                  They allow you to set a height, which I set to 600. When placed on my site I get this (when viewing the source):

                  <iframe id="twitter-widget-6" classname="twitter-timeline twitter-timeline-rendered" scrolling="no" frameborder="0" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " width="220" height="600"></iframe>
                  

                  220 的宽度让我很生气.我希望宽度是容器的全宽,即 100%(对于移动网站).目前 220 宽度在页面的一半多一点,并显示一个丑陋的滚动条.

                  The 220 width is what is killing me. I want the width to be the full width of the container, which is 100% (for a mobile site). Currently the 220 width goes a little more than halfway across the page and displays an ugly scrollbar.

                  那么,为什么将宽度设置为 220,我怎样才能让它扩展到它的父宽度?

                  So, why is it setting the width to 220, and how can I get it to expand to it's parent width?

                  推荐答案

                  我使用响应式主题,这个 css 代码运行良好.谢谢 Hjuster.

                  I use a responsive theme and this css code works fine. Thanks Hjuster.

                  #twitter-widget-0 { 
                        width: 100% !important; 
                      }
                  

                  这篇关于用于 Twitter 小部件宽度的 HTML/CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:保护 iFrame - 只允许它在一个域上工作 下一篇:Javascript 警报 - 删除“位于 ??? 的页面"说"

                  相关文章

                  <i id='SA2dR'><tr id='SA2dR'><dt id='SA2dR'><q id='SA2dR'><span id='SA2dR'><b id='SA2dR'><form id='SA2dR'><ins id='SA2dR'></ins><ul id='SA2dR'></ul><sub id='SA2dR'></sub></form><legend id='SA2dR'></legend><bdo id='SA2dR'><pre id='SA2dR'><center id='SA2dR'></center></pre></bdo></b><th id='SA2dR'></th></span></q></dt></tr></i><div id='SA2dR'><tfoot id='SA2dR'></tfoot><dl id='SA2dR'><fieldset id='SA2dR'></fieldset></dl></div>
                  1. <legend id='SA2dR'><style id='SA2dR'><dir id='SA2dR'><q id='SA2dR'></q></dir></style></legend>
                      <bdo id='SA2dR'></bdo><ul id='SA2dR'></ul>
                  2. <tfoot id='SA2dR'></tfoot>

                    1. <small id='SA2dR'></small><noframes id='SA2dR'>