jquery - Change width of div as orientation of mobile change in magento -
I am working on the Magnmo mobile topic.
I want to set the width of Lee based on the mobile screen.
For this I
& lt; Script & gt; JQuery (function () {var width = jQuery (window) .Width (); jQuery (". Press_li") width (width * 0.75);}); & Lt; / Script & gt; It does work but when the orientation changes, the width does not change. For this, I am trying to use jQuery-Mobile, but when I include jQuery, the second jazz stop is working.
You can use the next code to fix your problem
function set () {var width = jQuery (window) Width (); JQuery (". Press_li") width (width * 0.75); } $ (Document) .ready (function () {setPositions ()}) $ (window). Reset (function () {setPositions ()}) See the example:
Comments
Post a Comment