Category:Third-person shootersQ:
Easy way to disable IE7 zoom
I'm using Movable Type, and I'm trying to make the text bigger on the front page of my site so it's a bit easier to read on smaller screens. I've managed to make it bigger on smaller screens, but when the browser is zoomed in (ie7) it takes on a squished look. I've searched high and low for a way to fix this, but I haven't had any luck.
I've tried using
to disable zoom, but when I do that, I loose my ability to make the text larger on mobile devices.
Any suggestions on how to make the text larger on IE7 but not make it zoomed in?
A:
This should be possible with just CSS.
Add the following in your style sheet:
body {
zoom:1;
}
This is supported by IE7 and up (which is what you are using).
The other problem you will run into is if you have elements that can not be stretched, such as background images. In those cases you will have to manually specify the height/width properties.
A:
Add this meta tag to your pages.
You can find more information about this tag from MSDN.
Q:
Replacing a piece of complex JavaScript code with ng-repeat
I'm trying to replace some complex JavaScript code with an AngularJs one, but it's not going smoothly.
Here's my JavaScript code:
var buildMode = window.devicePixelRatio > 2? "retina" : "standard";
$('.slider-container').attr('data-build-mode', buildMode);
And here is what I have so far in AngularJs:
...
But the data-build-mode attribute does not get populated at all. What am I doing wrong here?
I'm a ac619d1d87
Related links:
Opmerkingen