如何删除timeline.js iframe上的滚动条?(How do you remove the scrollbars on timeline.js iframe?)

编程入门 行业动态 更新时间:2024-10-12 08:26:44
如何删除timeline.js iframe上的滚动条?(How do you remove the scrollbars on timeline.js iframe?)

我尝试将此帖子发布到timeline.js Google小组,但它已被删除。

我在插件网站( http://timeline.verite.co )的外部iFrame和我们的测试网站上看到了滚动条。

将iframe嵌入我们的网站时,我尝试添加:

<iframe scrolling="no" style="overflow:visible;"

但是当滚动条消失时,右边缘会略微被切断。

此外,建议的嵌入代码具有width =“100%”。

如果我把这减少到95% iframe比包含div小得多 但是右边缘仍然会被轻微切断 我们在Mac上的Firefox,Chrome和Safari中看到了这一点 我们还在timeline.js网站上的预览中看到了滚动条

我确定我错过了一些简单的东西,但在timeline.js网站或Google群组中看不到任何内容 - 除了一些“你做错了”对其他帖子的评论。

有没有删除iFrames中滚动条的技巧? 对不起,如果这很简单。

干杯

I tried posting this to the timeline.js Google group but it got deleted.

I'm seeing scrollbars on the outer iFrame on the plugin's website (http://timeline.verite.co) and on our test site.

When embedding the iframe into our site I tried adding:

<iframe scrolling="no" style="overflow:visible;"

But while the scrollbars disappear, the right edge gets cut off slightly.

Also, the suggested embed code has width="100%".

If I reduce this to 95% The iframe is much smaller than the containing div but the right edge still gets cut off slightly We see this in Firefox, Chrome and Safari on Mac We also see the scrollbars in our preview on the timeline.js website

I'm sure I'm missing something simple but can't see anything on the timeline.js site or in the Google Group - except a few "you're doing it wrong" comments for other posts.

Is there a trick to removing scrollbars in iFrames? Sorry if this is simple.

Cheers

Ben

最满意答案

在iframe中添加宽度,高度和frameborder,如下所示

width='100%' height='700' frameborder='0'

试试这个,我想现在它的确有效

<iframe src='embed.verite.co/timeline/?source=0Aj2TitNEGaD2dHlqV3ZRcDhMYlY3MjZmUEt2aWQ0ckE&font=Bevan-PotanoSans&maptype=toner&lang=en' width='100%' height='100%' frameborder='0'></iframe>

Add width, height and frameborder in your iframe as shown below

width='100%' height='700' frameborder='0'

Try this, i think now it's works

<iframe src='embed.verite.co/timeline/?source=0Aj2TitNEGaD2dHlqV3ZRcDhMYlY3MjZmUEt2aWQ0ckE&font=Bevan-PotanoSans&maptype=toner&lang=en' width='100%' height='100%' frameborder='0'></iframe>

更多推荐

本文发布于:2023-07-06 07:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1047439.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:滚动条   js   timeline   iframe   scrollbars

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!