hi i want to create web开发者_StackOverflow page which can not be maximized or minimize how to create such,, and sometime we can see some advertising page which is fixed so i want to create like that,,
You can't do this. Your web page can't handle the state of the browser. And also you won't able to prevent the zooming of your page.
Simple answer, set the width and the height of every single element?
Using Javascript you can make your page resize itself back to its intended size, but beware for you have no control of a user's viewarea. What this means is that not every client has the ability to display 1240x720 or whatever the case may be in your one-size-fits-all methodology.
You can use something like this within your body tag:
<body onResize="javascript:changeBackTo(800,600)">
And this as a script:
function changeBackTo(myWidth,myHeight) {
window.resizeTo(myWidth,myHeight);
}
精彩评论