Перейти к содержимому

Как скрыть iframe на сайте

  • автор:

HTML — Скрыть фрейм

Как скрыть iframe, но загрузите его? И т.д. Для воспроизведения песни youtube.

Это скроет iframe, однако, похоже, он не загружает iframe. (Песня не воспроизводится.)

4 ответа

Использование может использовать ширину 0, высоту 0 и границу 0

Итак, обновленный код будет!

Добавлено:

style=»width:0; height:0; border:0; border:none»

Он скроет его, сделает медиа для воспроизведения в фоновом режиме, и он также разрушит его пространство!

Disabling iFrames With CSS

While you can’t technically disable HTML iFrames, you can prevent user interaction and make them appear read-only.

In fact, you can do it in just two lines of code:

That overflow: hidden declaration, which removes the iFrame’s scrollbars, only works in Firefox.

So to ensure compatibility with all other modern browsers, you must set the scrolling attribute to no directly on your <iframe> tag:

I think it’s important to note that the scrolling attribute for <iframe> tags was actually deprecated in HTML5. However, most major browsers still support it.

Oh, and if all else fails, try adding the !important rule to your CSS declarations:

Link to this section

Well, this is probably my shortest post yet. But personally, I definitely prefer concise and to-the-point solutions!

The ability to make iFrames “read-only” is quite practical, and I’ve saved this snippet for whenever I’m trying to generate a preview image of a page. I hope it helps you out too.

Скрыть iframe

Как скрыть div из iframe?
Функция скрытия уже есть. При нажатии на ссылку, див скрывается. Как скрыть div из iframe? Какой.

Не срабатывают события из iframe при перетаскивании в этот iframe в Opera
Есть два фрейма. В первый вкладывается второй. При зажатии кнопки мыши на первом, если передвинуть.

Уменьшить размер iframe щелкнув по ссылке внутри iframe
Можно уменьшить размер iframe щелкнув по ссылке внутри iframe? Ситуация: на странице есть ссылка.

Лучший ответСообщение было отмечено Voprosnik как решение

Решение

Могу ли я из одного iframe добраться к елментам другого iframe?
День добрый всем! Могу ли я из одного iframe добраться к елментам другого iframe, т.е.

Передача данных из iFrame в iFrame
Здравствуйте! Такой вопорсик: У меня на странице 2 элемента iFrame. В одном из них находится.

Iframe
Напишите пожалуйста код, который удалить из iframe c элемент с >

Iframe
Добрый день. У меня есть главная страница моего сайта, на ней размещаю iframe форму(с другого.

HTML — Hide an iframe

How do I hide an iframe, but still load it? Etc. For playing a youtube song.

This will hide the iframe, however it dosen’t seems to load the iframe. (Song is not playing.)

8 Answers 8

Use can use width: 0; height: 0; position: absolute; and border: 0;

So the updated code will be!

Added:

style="position: absolute; width:0; height:0; border:0;"

It will hide it, make media to play in the background and it will also collapse it space!

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *