I have a page to which I do not control the source. It contains an iframe. The iframe has scrollbars and a border. I want to remove both. I tried using jquery as follows:
$('iframe').attr('scrolling', 'no');
Nothing will affect iframes attributes at all.
Any ideas? (IE8)
http://www.w3.org/TR/html4/present/frames.html#h-16.5
<iframe scrolling="no" frameborder="0">
You can access iframe attributes using jQuery and just set the scroll to no as follows:
$("#frame")[0].setAttribute("scrolling", "no");
Just add [0] as above so that the jQuery object returns the first DOM element.
frameborder="0" , . css , .
frameborder="0"
.
$("iframe").each( function(index, elem) { elem.setAttribute("scrolling","no"); } );
I have not tested it, but it should work.
Source: https://habr.com/ru/post/1757042/More articles:Сопоставьте ключ блокировки крышки, который сопоставляется с системой ctrl, чтобы Escape просто в vim - vimPut iPhone app on your phone to check? - iphoneWhat is an Algorithm for ORM? - phpIn PHP, as I write: NOT SMALL THAN - phpjsp: inclusion, performance, modulation, alternatives and best practices, part 96 - javaWhy is Firefox waiting for the javascript function to complete to launch another function? - javascriptЧто означает несоответствие типа файла ошибки (~)? - xcodeCaching pattern: what you call (and how you change) OpenSymphony OsCache "group" paradigm - cachingHow can one block detect it inside another block? - ruby | fooobar.comМожно ли заставить maven принимать maxerrs для своего плагина-компилятора? - javaAll Articles