代码修改后的版本,全部提交
This commit is contained in:
19
Mtxfw.shop/Scripts/media_screen.js
Normal file
19
Mtxfw.shop/Scripts/media_screen.js
Normal file
@@ -0,0 +1,19 @@
|
||||
function adjustStyle(width) {
|
||||
width = parseInt(width);
|
||||
if (width < 902) {
|
||||
//alert("<900");
|
||||
//alert(width);
|
||||
$("#size-stylesheet").attr("href", "navigateLowerIE8.css");
|
||||
} else {
|
||||
// alert(">900");
|
||||
//alert(width);
|
||||
$("#size-stylesheet").attr("href", "");
|
||||
}
|
||||
}
|
||||
|
||||
$(function () {
|
||||
adjustStyle($(this).width());
|
||||
$(window).resize(function () {
|
||||
adjustStyle($(this).width());
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user