1
我正在使用下面的JavaScript代碼。但它不適用於瀏覽器大小調整。我也在這個項目中使用了基礎(zurb)框架。爲什麼'orientationchange'事件不能在瀏覽器中調整大小?
<script type="text/javascript">
$(window).on("orientationchange", function() {
alert("The orientation has changed!");
// I want to do my other stuff here which is depend on Landscap or portrait
});
</script>
請讓我知道我在這裏錯過了什麼。 感謝
非常感謝!它運作完美。 – prog1011