当前位置:网站首页>Solve the problem that when the background image is set to be 100% full, when the horizontal scroll bar appears in the zoom browser, the part of the background image beyond the scroll bar is not full
Solve the problem that when the background image is set to be 100% full, when the horizontal scroll bar appears in the zoom browser, the part of the background image beyond the scroll bar is not full
2022-07-26 00:40:00 【Fan Xiaoduo】
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style> *{
margin:0;padding:0} .wrap{
height: 40px; width: 1000px; background-color: #ccc; } .box{
background: url('/img.png'); background-size: 100% 100%; } </style>
</head>
<body>
<div class="wrap">
<div class="box">example</div>
</div>
</body>
</html>
When the viewport width is less than 1000 when , actual body The width of the element is not stretched to 1000PX. Instead, the default setting is “ The width of the browser's visible window ” and ”min-width” Property to resolve .
** resolvent :** Set the parent element min-width( Or to body Set up min-width)
body {
min-width: 1000px;
}
边栏推荐
- What is Web3 game?
- The way to understand JS: the principle of object.call and object.create() inheritance
- How to use 120 lines of code to realize an interactive and complete drag and drop upload component?
- Research on the integrated data quality management system and technical framework under the scenario of data circulation and transaction
- Jmeter之用户自定义变量和抽离公共变量
- [zero based BLDC series] brushless DC motor control principle based on the zero crossing detection method of back EMF
- Prefix XOR sum, XOR difference array
- 【零基础玩转BLDC系列】基于反电动势过零检测法的无刷直流电机控制原理
- The way of understanding JS: what is prototype chain
- 【IJCAI 2022】参数高效的大模型稀疏训练方法,大幅减少稀疏训练所需资源
猜你喜欢

The way of understanding JS: write a perfect combination inheritance (Es5)

Practical exercise | find customers who buy more than n products within a given time range

sql(基础二)

数据库工具对决:HeidiSQL 与 Navicat

Verilog语法基础HDL Bits训练 06
![[redis] ② redis general command; Why is redis so fast?; Redis data type](/img/72/aaa90d5411b8b20b15a7f87b98bd27.png)
[redis] ② redis general command; Why is redis so fast?; Redis data type

HCIP第十二天
![[IJCAI 2022] parameter efficient large model sparse training method, which greatly reduces the resources required for sparse training](/img/56/7a49f9c825d88a31b980a5fae50951.png)
[IJCAI 2022] parameter efficient large model sparse training method, which greatly reduces the resources required for sparse training

以数据驱动管理转型,元年科技正当时

YOLOV3
随机推荐
从另一个角度告诉你单元测试的意义
Hcip day 11
实战演练 | 查找在给定时间范围内购买超过 N 件商品的客户
Solve page refresh without attaching data
8种MySQL常见SQL错误用法,我全中
GOM和GEE引擎黑屏不显示界面,装备地图怪物的解决方法
Study on bovine serum protein modified phenolic acids and alkaloids small molecules / coupled microspheres protein / bovine erythrocyte SOD
8个小妙招-数据库性能优化,yyds~
Tid-mop: a comprehensive framework for security management and control under the scenario of data exchange
The way to understand JS: six common inheritance methods of JS
[untitled] how to realize pluggable configuration?
2022/7/24 考试总结
8 tips - database performance optimization, yyds~
Leetcode notes 121. the best time to buy and sell stocks
HOOPS Exchange助力混合计算流体动力学软件搭建3D格式导入读取功能 | 客户案例
2022/7/19 exam summary
Seretod2022 track1 code analysis - task-based dialogue system challenge for semi supervised and reinforcement learning
Azure synapse analytics Performance Optimization Guide (1) -- optimize performance using ordered aggregate column storage indexes
Mwec: a new Chinese word discovery method based on multi semantic word vector
letfaw