当前位置:网站首页>图片根据屏幕自适应
图片根据屏幕自适应
2022-07-28 05:18:00 【积雷山摩云洞】
<body><ul></ul></body>
var bodyWidth = $(window).width();
var conwidth = window.innerWidth;
var Wproportion = bodyWidth / conwidth;
console.log(Wproportion)
var H = 200;
var W = 200;
var newH = Wproportion* H;
var newW = Wproportion* W;
for(var i = 1; i< 8;i++){
$('ul').append('<li><img class="imgsize" src="img/'+i+'.jpg"/></li>')
}
$(".imgsize").css({'width':newW,'height':newH});
边栏推荐
- Oracle create table, delete table, modify table (add field, modify field, delete field) statement summary
- 使用深度学习训练图像时,图像太大进行切块训练预测
- 树莓派WIFI一键连接配置
- Openjudge: count the number of numeric characters
- visio如何精确控制图形的大小和位置及角度
- Export excel, generate multiple sheet pages, and name them
- openjudge:万年历
- 蒙特卡罗方法求解圆周率π并用turtle画点,以及完成进度条问题
- When using \hl for highlighting, latex always reports an error when encountering a reference, showing that there are fewer or more parentheses
- Pytorch uses maxpool to realize image expansion and corrosion
猜你喜欢

Idea configures the service (run dashboard) service, and multiple modules are started at the same time

论文模型主图范例
![[idea plug-in artifact] teaches you how to set all attributes in an entity class with one click of idea](/img/d6/4e69480c5ad5040ee48941ca0fcb37.png)
[idea plug-in artifact] teaches you how to set all attributes in an entity class with one click of idea

Custom JSON return data

冶金物理化学复习 --- 金属的电沉积,还原过程

How Visio accurately controls the size, position and angle of graphics

Review of metallurgical physical chemistry --- liquid liquid reaction kinetics

顺序表的增删查改

regular expression

c语言:通过一个例子来认识函数栈帧的创建和销毁讲解
随机推荐
Openjudge: stone scissors cloth
Writing methods of scientific research papers: add analysis and discussion in the method part to explain their contributions and differences
(dark horse) MySQL beginner advanced notes (blogger lazy dog)
The way of deep learning thermodynamic diagram visualization
The difference between get and post
使用深度学习训练图像时,图像太大进行切块训练预测
树莓派WIFI一键连接配置
List < long >, list < integer > convert each other
MySQL uses list as a parameter to query
对极大似然估计、梯度下降、线性回归、逻辑回归的理解
Advanced multithreading: Lock strategy
Idea configures the service (run dashboard) service, and multiple modules are started at the same time
Framework step by step easy-to-use process
动态卷积的本质
SSM project quick build project configuration file
About localdatetime in swagger
pytorch 计算模型的GFlops和total params的方法
NRF51822 回顾总结
Pytorch uses maxpool to realize image expansion and corrosion
openjudge:过滤多余的空格