In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
IE how to remove the iframe frame and compatible with IE7\ IE8\ IE6 below, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
[below IE6]
The iframe frame is set by css under FF, but there is still a border under ie. The annoying iframe frame can be removed by setting the attribute frameborder= "no" border= "0" inside the iframe tag.
[under IE7\ IE8]
Encountered a depressing problem, the border of ie8,ie7 iframe can not be removed, tried to use scripts and styles to add frameBorder,border and other attributes can not be removed.
The setting is valid before iframe append arrives on the page, and there is no way to modify it after append. As follows:
The code is as follows:
Var ifr = document.createElement ('iframe')
Ifr.setAttribute ('frameBorder', 0); / / I don't have border
Document.body.appendChild (ifr)
/ / ifr.setAttribute ('frameBorder', 0); / / I have border
Ifr.style.cssText = 'border: 0 none;'
Var div = document.createElement ('div')
Document.body.appendChild (div)
Div [XSS _ clean] =''; / / I have border
/ / div [XSS _ clean] =''; / / I don't have a border
Var ifr = document.getElementById ('a')
Ifr.setAttribute ('frameBorder', 0)
Ifr.style.cssText = 'border: 0 none;'
Var ifr = document.getElementById ('b')
Ifr.setAttribute ('frameBorder', 0)
Ifr.style.cssText = 'border: 0 none;'
After reading the above, have you mastered how to remove the iframe frame under IE and is compatible with IE7\ IE8\ IE6? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.