大佬教程收集整理的这篇文章主要介绍了css – iframe的溢出问题,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
集装箱页面:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <style type="text/css"> #content{ margin: auto; width: 500px; height: 1000px; BACkground: green; } #frame{ width:202px; height:302px; overflow: visible; } </style> </head> <body> <div id="content"> <iframe id="frame" src="http://localhost:8080/webApp/view/test/embeddable.html" scrolling="no" frameborder="0" allowTransparency="true" marginheight="0" marginwidth="0"> </iframe> </div> </body> </html>
可嵌入页面:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style type="text/css"> body { width: 200px; height: 300px; overflow: visible; border: 1px solid yellow; } #id1{ margin: auto; width: 500px; height: 10px; border: 1px solid white; BACkground: red; margin-top: 20px; } </style> </head> <body> <div id="id1"></div> </body> </html>
id1应该溢出,但不是.我将所有重要的div的“overflow”属性设置为“visible”(即使是默认值).我不知道我做错了什么
为了实现类似的效果,您最好使用AJAX将嵌入式页面注入div,并使div溢出.
以上是大佬教程为你收集整理的css – iframe的溢出问题全部内容,希望文章能够帮你解决css – iframe的溢出问题所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。