小编Per*_*ark的帖子

iFrame 100%高度会导致垂直滚动条

我看到很多关于100%高度iFrames的问题,但似乎没有人像我一样有同样的问题.

我想要做的是拥有一个覆盖整个视口的iFrame,没有滚动条,没有设置溢出:隐藏在主体上.

我得到一个5px的底部边距到我的iFrame,它不会消失css,它会导致垂直的scroolbar.标准建议似乎是设置溢出:隐藏在身体上,但这并不是真正解决问题,对我来说这还不够.

这是一个超级简单的jsFiddle示例.(注意双垂直滚动条)

对于我来说,Chrome 15,IE9和FF9中的行为是相同的.

html css iframe

20
推荐指数
1
解决办法
2万
查看次数

访问jQuery插件数据

jQuery文档表明存储每一个DOMElement使用附加信息数据() .但是我很难以一种好的方式访问保存的数据.

当我调用其他功能让我迷失方向时,范围会发生变化:)

(function ($) {
    var methods = {
        init: function (options) {
            return this.each(function () {
                var $this = $(this),
                    data = $this.data('myPlugin');

                if (!data) {
                    $(this).data('myPlugin', {
                        testValue: true
                    });

                    data = $this.data('myPlugin');
                }
            });
        },

        testFunction: function () {
            console.log('t: '+$(this).data('myPlugin').testValue);
            methods.otherFunction();
        },

        otherFunction: function () {
            console.log('o: '+$(this).data('myPlugin').testValue);
        }
    };

    $.fn.myPlugin = function (method) {
        if (methods[method]) {
            return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
        } else if (typeof method === 'object' || !method) { …
Run Code Online (Sandbox Code Playgroud)

jquery jquery-plugins

6
推荐指数
1
解决办法
3412
查看次数

是否使用过cms/content.phtml?

从文件结构来看,您会认为cms-page使用content_heading.phtml文件来打印标题,而content.phtml用于打印页面内容,但显然情况并非如此.

对content_heading.phtml的更改很好,但是对于content.phtml; 没有.

是否使用了content.phtml?如果不是,如果不使用管理员中的wysiwyg,您将如何更改或添加内容周围的html?

magento

4
推荐指数
1
解决办法
2319
查看次数

标签 统计

css ×1

html ×1

iframe ×1

jquery ×1

jquery-plugins ×1

magento ×1