Home > front end >  Pages with embedded iframe H5 mobile landscape
Pages with embedded iframe H5 mobile landscape

Time:12-19

H5 page use iframe commands embedded in a web page, I want to achieve the following objectives: open the way to determine the page is mobile phone or computer, if the phone is forced to embedded page rotation into landscape,

I see in the BBS of others is said to use JS or CSS to achieve, but he only gives the key code, does not have a complete source code, I want to ask you who have this kind of source code can be sent to me, I want to learn,

I just started and I don't know how to write js code and call, hoping to have a complete source code to learn!

As such, all get out, really want to learn

CodePudding user response:

Me too, mobile terminal iframe open don't know how to realize the landscape

CodePudding user response:

refer to the second floor weixin_44804975 response:
I also am, mobile terminal iframe open don't know how to realize the landscape


Using CSS 3 animation

 

<style>
The iframe {

The transform: the rotate (90 deg);
The transform - origin: 0 0;
}

</style>
<iframe> </iframe>

  • Related