Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine IE browser width dynamically?
Message
 
 
À
14/01/2014 09:57:54
Information générale
Forum:
CSS
Catégorie:
Autre
Divers
Thread ID:
01591835
Message ID:
01591843
Vues:
37
>>>>As I am working on responsive design of my pages where I am constantly changing the IE browser (10) width to see how my page responds. For example, I have the following code in my .CSS file:
>>>>
>>>>@media only screen and (min-width:959px) and (max-width: 1200px) {
>>>>	table.close_wo
>>>>               {
>>>>                     width: 900px;
>>>>               }
>>>>}
>>>>
>>>>
>>>>And I would like to see, at any moment, the specific width of the browser; so that I can see how the page responds. Is it possible with IE? or maybe with chrome?
>>>>
>>>>TIA
>>>
>>>http://stackoverflow.com/questions/1038727/how-to-get-browser-width-using-javascript-code
>>>http://designedbythomas.co.uk/blog/how-detect-width-web-browser-using-jquery
>>
>>Thank you very much. I should have thought about javascript for this purpose.
>
>And with jquery you can use the same code independent of the browser.

One downside of using the jQuery for getting the browser width is that it does not change dynamically, as you resize the browser. You have to refresh the browser when you want to see the width.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform