【问题标题】:vertical center Headline - Beetle HTML5 Template垂直中心标题 - 甲壳虫 HTML5 模板
【发布时间】:2015-04-14 12:10:03
【问题描述】:

我将使用Beetle HTML5 Template。 下载并在浏览器中查看后看起来不错,但是当我切换到 chrome 移动视图时,标题不在视图中居中。

http://themes.mokaine.com/beetle-html/home-01.html原创:

这里是下载的版本:

这里是标题居中的 JS 部分:

pxImgCaption.each(function () {

                var $this = $(this);

                $this.css({
                    top: ((pxWrapper.height() + headerHeight / 2) - $this.outerHeight()) / 2
                });

            });

这里是完整的 JS 文件: http://themes.mokaine.com/beetle-html/js/beetle.js

【问题讨论】:

  • 到目前为止,您是否尝试过任何方法来居中?
  • 不,我没有更改代码中的任何内容。这就是我不明白的。
  • 只是为了确保,您希望顶部的“甲虫”居中?
  • 不,我希望 Jules 和 Jim 像原始版本一样居中。
  • 在线版居中。下载的不行。

标签: javascript css html center


【解决方案1】:

如果你用 Chrome Inspector 检查甲虫 wordpress,你会注意到他们正在添加

【讨论】:

    猜你喜欢
    • 2017-01-05
    • 2015-05-02
    • 1970-01-01
    • 1970-01-01
    • 2011-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多