javascript - 垂直居中标题 - Beetle HTML5 模板

标签 javascript css html center

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

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

original

这里是下载的版本:

enter image description here

这是中心标题的 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

最佳答案

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

关于javascript - 垂直居中标题 - Beetle HTML5 模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28499803/

相关文章:

html - 下拉按钮赢得了工作

javascript - D3.js 条形图根据数据的权重或值生成条形颜色

css - Windows 8 ListView 控件在放置在 CSS 网格中时不显示

html - 元素在平板电脑浏览器上显示不正确

javascript - Gmap3 标记可见,但无法与其交互

html - 将图像放入图像大小不同的 div 中

javascript - 检测设备并应用并应用特定的CSS

javascript - 使用 div jquery 创建 div

javascript - 如何点击div并且不触发点击 Action

html - 输入未完全包含在父项中