当前位置:网站首页>Pictures are adaptive to the screen
Pictures are adaptive to the screen
2022-07-28 07:04:00 【Jilei mountain Moyun cave】
<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});
边栏推荐
- Hdu-1097-a hard puzzle (fast power)
- What is a linear table?
- Blue Bridge Cup square filling number
- Asynchronous programming promise
- ---Stack & queue---
- Esxi arm edition version 1.10 update
- Custom component -- pure data field & component life cycle
- Bond mode configuration
- Detailed explanation of LNMP construction process
- PXE unattended installation management
猜你喜欢

Group management and permission management

Firewall - iptables firewall (four tables and five links, firewall configuration method, detailed explanation of matching rules)

防火墙——iptables防火墙(四表五链、防火墙配置方法、匹配规则详解)

Detailed explanation of LNMP construction process

Method of designing test cases

Applets: WSX scripts

DOM Foundation

Technology sharing | common proxy tools for interface testing

MOOC Weng Kai C language fourth week: further judgment and circulation: 1. Logical types and operations 2. Judgment of cascading and nesting

MOOC翁恺 C语言 第三周:判断与循环:2.循环
随机推荐
MOOC翁恺C语言 第四周:进一步的判断与循环:1.逻辑类型与运算2.级联和嵌套的判断
MOOC Weng Kai C language week 3: judgment and circulation: 2. circulation
shell脚本——“三剑客”之awk命令
Wechat applet custom compilation mode
Clock tree analysis example
Life cycle (process) of software testing
Understanding of C language EOF
Technology sharing | how to do Assertion Verification in interface automated testing?
Blue bridge code error ticket
DOM - Events
SSH service configuration
Operation document tree
Monotonic queue, Luogu p1886 sliding window
DOM -- event chain, event bubble and capture, event proxy
Tcp/ip five layer model
[learning notes] knowledge management
DOM operation cases
Small tips
Si Han talks about the professional development of testers
Result number of filled briquettes