How to rotate an iFrame using javascript?

扶醉桌前 提交于 2019-12-13 04:48:30

问题


I have an iFrame:

    <div class="embed-responsive embed-responsive-16by9">
       <iframe id="camera_view" class="embed-responsive-item container well well-small span6" style="height: 720px; width: 1280px; background-color: #2e2e2e;" src="www.google.com">
       </iframe>
    </div>

How to rotate using javascript?

Note: I am using Bootstrap for CSS. jQuery for javascript.


回答1:


There is the transform property in css3

#camera_view {
  transform: rotate(45deg);
}

hope it helps



来源:https://stackoverflow.com/questions/33727978/how-to-rotate-an-iframe-using-javascript

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