如何在这个iframe中添加CSS [英] how to add CSS in this iframe
本文介绍了如何在这个iframe中添加CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以告诉我如何通过iframe在外部网站页面中添加自己的CSS。那么我应该在这里更改什么代码:
Can any one tell me how I can add my own CSS in an external site page through an iframe. So what code should I change here:
<iframe src="http://dhost.info/asz/demo.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="232px" width="514px" id="Dir-go" allowtransparency="true" title="WebDir"></iframe>
推荐答案
你不能。你也不能通过Javascript添加样式表。您无法编辑其他域的Iframe的DOM。 (非常安全,全部。)
You can't. Nor can you add a stylesheet to it though Javascript. You can't edit the DOM of another domain's Iframe. (Very secure and all.)
这篇关于如何在这个iframe中添加CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文