从嵌套在Javascript中的iframe标记中删除垂直滚动条

时间:2022-12-05 22:03:45

So I have a iframe tags nested in a Javascript, due to what I'm achieving I need to have it this way. Anyway, how do I remove the vertical scrollbars so that they don't show?

所以我有一个嵌套在Javascript中的iframe标签,由于我实现的目标,我需要这样做。无论如何,如何删除垂直滚动条,使它们不显示?

My JS code:

我的JS代码:

        $(document).ready(function () {
        $('a#addHolidayLink').live('click', function (e) {
            e.preventDefault();
            var page = $(this).attr("href")
            var pagetitle = $(this).attr("title")
            var $dialog = $('<div></div>')
            .html('<iframe style="border: 0px; overflow: hidden;  noresize:noresize; scrolling: no; seamless: seamless;" src="' + page + '" width="100%;" height="100%"></iframe>')
            .dialog({
                    title: 'Edit Employee',

                    resizable: true,
                    autoOpen:false,
                    modal: true,
                    hide: 'fade',
                    width:850,
                    height:595
            });
            $dialog.dialog('open');
        });
    });

Any help is appreciated

任何帮助表示赞赏

1 个解决方案

#1


0  

Try removing the scrolling:no and the seamless: seamless from the style="" and add it to the actual iframe.

尝试删除滚动:否和无缝:从style =“”无缝并将其添加到实际的iframe。

For example

<iframe scrolling="no" seamless="seamless" style="border: 0px; overflow: hidden;  noresize:noresize;" src="' + page + '" width="100%;" height="100%"></iframe>

Goodluck

#1


0  

Try removing the scrolling:no and the seamless: seamless from the style="" and add it to the actual iframe.

尝试删除滚动:否和无缝:从style =“”无缝并将其添加到实际的iframe。

For example

<iframe scrolling="no" seamless="seamless" style="border: 0px; overflow: hidden;  noresize:noresize;" src="' + page + '" width="100%;" height="100%"></iframe>

Goodluck