当前位置:网站首页>Web page, adaptive, proportional scaling
Web page, adaptive, proportional scaling
2022-04-23 14:16:00 【Ruirui junior】
You can write a predetermined width and height first , Then scale it proportionally ,
// Adaptive scaling
getc() {
// let width = document.documentElement.clientWidth;
// let height = document.documentElement.clientHeight;
window.addEventListener('load', adaptation);
window.addEventListener('resize', adaptation);
function adaptation() {
var w = document.body.clientWidth;
var h = document.body.clientHeight;
var nw = 2048;
var nh = 1536;
var left, top, scale, scale1;
scale = w / nw
scale1 = h / nh
if (scale1 < scale) {
document.getElementById('main').setAttribute('style', 'transf
版权声明
本文为[Ruirui junior]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231408339342.html
边栏推荐
- Introduction to loan market quotation interest rate (LPR) and loan benchmark interest rate
- ActiveMq基础知识
- 操作系统常见面试题目:
- MySQL lock database lock
- 01-NIO基础之ByteBuffer和FileChannel
- mysql 5.1升级到5.610
- Get the thread return value. Introduction to the use of future interface and futuretask class
- VMWare安装64位XP中文教程
- 差分隐私(背景介绍)
- Thread group ThreadGroup uses introduction + custom thread factory class to implement threadfactory interface
猜你喜欢

VMware15Pro在Deepin系统里面挂载真机电脑硬盘

某政务云项目业务系统迁移调研实践

win10自带Groove音乐不能播放CUE和APE文件的一种曲线救国办法,自己创建aimppack插件包,AIMP安装DSP插件

Operation instructions of star boundary text automatic translator

处理 mkdir:无法创建目录“aaa“:只读文件系统

倒计时1天~2022云容灾产品线上发布会即将开始

MYSQL一种分表实现方案及InnoDB、MyISAM、MRG_MYISAM等各种引擎应用场景介绍

KVM学习资源

HyperBDR云容灾V3.2.1版本发布|支持更多云平台,新增监控告警功能

A table splitting implementation scheme of MySQL and InnoDB, MyISAM and MRG_ Introduction to MyISAM and other engine application scenarios
随机推荐
微信小程序客服接入,实现发送和接收消息
错误:无法远程查找到密钥 “428F7ECC7117F726“
正则表达式
Use the executors class to quickly create a thread pool
mysql 5.1升级到5.67
js 抛物线运动方法封装
ActiveMq基础知识
win10自带Groove音乐不能播放CUE和APE文件的一种曲线救国办法,自己创建aimppack插件包,AIMP安装DSP插件
统信UOS卸载php7.2.24,安装php7.4.27 ;卸载再安装为PHP 7.2.34
A table splitting implementation scheme of MySQL and InnoDB, MyISAM and MRG_ Introduction to MyISAM and other engine application scenarios
进入新公司,运维工程师从下面这几项了解系统的部署
DP energy Necklace
redis数据库讲解(四)主从复制、哨兵、Cluster群集
Homebrew是什么?以及使用
Introduction to loan market quotation interest rate (LPR) and loan benchmark interest rate
什么是云迁移?云迁移的四种模式分别是?
elk安装
教育行业云迁移最佳实践:海云捷迅使用HyperMotion云迁移产品为北京某大学实施渐进式迁移,成功率100%
时间复杂度计算举例
Thread group ThreadGroup uses introduction + custom thread factory class to implement threadfactory interface