What is the best method of re-rendering a web page on orientation change?
问题 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 refresh the page on orientation change, which works fine - it just feels a little wrong doing so. Is there any way of achieving this without having to reload the entire page? It is a mobile site, I don't really want to force the user to load the page twice. var supportsOrientationChange = "onorientationchange" in window,