当前位置:网站首页>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;
}
边栏推荐
- 2022/7/25 exam summary
- 【NumPy中数组创建】
- DC-6--vulnhub靶场
- C # from entry to mastery (III)
- 对比7种分布式事务方案,还是偏爱阿里开源的Seata(原理+实战)
- 【oops-framework】界面管理
- Study on gene targeting preparation of tissue plasminogen activator loaded on albumin nano ultrasonic microbubbles
- sql(基础二)
- Pikachu target clearance and source code analysis
- Leetcode 笔记 20. 有效的括号
猜你喜欢
![[calculate the number of times that one string is equal to another string]](/img/82/db8ed70464df46c7a700c65d208fef.png)
[calculate the number of times that one string is equal to another string]

向左旋转k个字符串(细节)
![[untitled] how to realize pluggable configuration?](/img/48/673a2d63e11679f1e75ca3ca7ed6a9.jpg)
[untitled] how to realize pluggable configuration?

Hoops exchange helps hybrid computational fluid dynamics software build 3D format import and read function | customer case

YOLOV2 YOLO9000

对比7种分布式事务方案,还是偏爱阿里开源的Seata(原理+实战)

进程与线程

Research progress of data traceability based on the perspective of data element circulation

SQL (basic 2)

你还在掐表算时间复杂度?
随机推荐
LCA three postures (multiplication, tarjan+ joint search set, tree chain dissection)
2022/7/19 考试总结
Study on bovine serum protein modified phenolic acids and alkaloids small molecules / coupled microspheres protein / bovine erythrocyte SOD
8种MySQL常见SQL错误用法,我全中
Leetcode 笔记 20. 有效的括号
Verilog语法基础HDL Bits训练 06
YOLOV3
[IJCAI 2022] parameter efficient large model sparse training method, which greatly reduces the resources required for sparse training
[redis] ① introduction and installation of redis
SereTOD2022 Track1代码剖析-面向半监督和强化学习的任务型对话系统挑战赛
Day06 MySql知识点总结
[paper notes] - target attitude estimation Epro PNP 2022 CVPR
Research progress of data traceability based on the perspective of data element circulation
Redis(八) - Redis企业实战之优惠券秒杀
What is Web3 game?
Hcip day 12
Nodejs learning
YOLOV2 YOLO9000
本地电脑架设传奇怎么开外网叫朋友一起玩?
[calculate the number of times that one string is equal to another string]