Change mousecursor above external <iframe>

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 03:34:36

问题


I have a

<div style="cursor: move;">
<script type="text/javascript" src="h**p://www.some-external-js"></script>
</div>

the external JS loads some iframe with content: <iframe src="somesource"></iframe>

I would love to change the mousecursor above the iframe, which is in my div box. Unfortunately this is not possible with CSS alone, because the iframes overwrites the cursor settings? Any idea?


回答1:


It's not possible. The Same Origin Policy will block you from modifying any of the iframe document's CSS.

The only thing you could do is overlay the iframe with a transparent div using position: absolute and a z-index. But then the iframe will become unusable.



来源:https://stackoverflow.com/questions/4258338/change-mousecursor-above-external-iframe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!