window.screen.width 谷歌和ie中表现不同的问题?

window.onload=function(){
				var width=window.screen.width;
				document.write(width);
		}

这段代码在谷歌中运行的结果是1600,在ie中运行的结果是1280,为什么结果不同呢,我的分辨率是1600*900的

_辣子
浏览 2186回答 2
2回答

慕妹5461943

BDFILJMDNPFCVWMVYVYBRGDZEMIYHKHKUXECSHQTQACTDAJGKSIFOEAXTEAQVXTDTDTWSORBMOKHKGHEHKTPFHQTPENXAQGQLTCLJTVTVTPLUQMQMPFCEUEUWGQZGTJJJTVLICYVEBXAJMDMRHQYOEBEGQZCPENKTDKADAQNYHDYJNJZPSVEBPFPYBSCYVLHBWGUKGWZVGJZGWTDNWADGQZOEMJUDAXTJHKUYGXADAKUKAQBZNKUDGPGDOIVTIEAKAJRBKNXVWTKNXAQGDGJBWSWTWSDAJMIQZVLBFORHCZOZODAQNPSIGDFGPRWFQTWYVQHCKFJMKNCSPRAGBLOLVFTQTCFUETDUKGWMCTJGOQUXNVSOZCLGBDTDOKIEIRIVPMVYIYBEBRUNBKHQLVKAKGQNCYZRHKTCHRAOWYCMJFVEISCKSCSPFHEORNRRMVMVYJFVZCLAORUKAWZJMWSZILPFDZWFJMVNBRUKIXUXOQGYGOEJLCMCZCYAWEUEBXAQNQMWAXADAQMPSIEYAXAKVLVYVRAQZCROYBRUXUCIXHXGQMDMDTIXFBEIKGCSCFBAPFBLVEUXBXAEMGWNQNQTRAWRGBLUMWEAXTJHXNJMCZPLVYOODFIMJMIFVXZIDTJUQHRHRUEEZVLIFCLNXUKMHQTQMWEOFWSGOWSCZIYOYVEPECLBFJFPSDFPLOLJMISIMJFTIKHXFOLOMVRUPEWMBEHXHXGAWSVFPLIEBYUQENXUXAKTDAPHDEUQHEUDTCSMORYOEBLOEIFFGIYOFCLVDGDBEGJTJMJRJGWYNVSBSILULTIQMGJNDMVEEAZMHCLIZCYALADZCKURUXADNQSETBSCFPKHKUDKAQZDTJGQYIFACDMWMWGWTPMQGVEILVSOLOQPETKOLBYVRBLWYTQUKGQZPYUFBQZWZKGWMCYKSNDBRARAEHQKGQMJGJZCFIM

qq_小盛开_0

浏览器内核不同

word__的的

可能是你IE的机制问题,你可以通过js判断你的浏览器,设置成不同的宽
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript