What is the best method of re-rendering a web page on orientation change?

后端 未结 8 783
臣服心动
臣服心动 2020-11-28 06:43

I have a fluid CSS layout which is rendering badly on an iphone when I change the orientation. (It looks fine when it is refreshed).

I am using the code below to ref

8条回答
  •  野性不改
    2020-11-28 07:10

    In my experience the best way is to have it like this

    
    
    

    Doing it like @BenSwayne in my experience does not rescale back to the initial scale when you change the orientation. Dont know why that is

提交回复
热议问题