📜  ios中对话框的屏幕放大 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:08.585000             🧑  作者: Mango

代码示例1
if(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
  document.querySelector('meta[name=viewport]')
    .setAttribute(
      'content', 
      'initial-scale=1.0001, minimum-scale=1.0001, maximum-scale=1.0001, user-scalable=no'
    );
}