0

我使用了 _tk 主题作为我的主题。链接到主题https://github.com/Themekraft/_tk。现在我想从主题中删除响应功能。如何从主题中删除响应功能?是否有任何功能可以禁用响应。如果您使用过主题,请帮我删除响应式功能。

4

3 回答 3

1

当我问我如何从主题中删除响应式的问题时。我知道 _tk 主题使用了 bootstrap 3.0,最新的 3.0 bootstrap 可以通过执行以下操作停用响应式。

    Omit the viewport <meta> mentioned in the CSS docs
    Override the width on the .container for each grid tier with a single width, for example width: 970px !important; Be sure that this comes after the default Bootstrap CSS. You can optionally avoid the !important with media queries or some selector-fu.
    If using navbars, remove all navbar collapsing and expanding behavior.
    For grid layouts, use .col-xs-* classes in addition to, or in place of, the medium/large ones. Don't worry, the extra-small device grid scales to all resolutions.

You'll still need Respond.js for IE8 (since our media queries are still there and need to be processed). This disables the "mobile site" aspects of Bootstrap.
于 2013-11-18T10:41:19.233 回答
-1

删除 css 或 head 中的媒体查询

寻找任何一个(类似于)

<link rel='stylesheet' media='screen and (min-width: 701px)'>

或者

CSS

@media screen {
      /* whatever */
}
于 2013-11-14T12:51:55.860 回答
-1

您正在使用引导程序。从您的引导 css 中删除媒体查询,下面是路径

includes/resources/bootstrap/css/bootstrap.css

和下面的标题行

<meta name="viewport" content="width=device-width, initial-scale=1.0">
于 2013-11-14T12:56:35.073 回答