当前位置:网站首页>Two methods for full screen adaptation of background pictures, background size: cover; Or (background size: 100% 100%;)
Two methods for full screen adaptation of background pictures, background size: cover; Or (background size: 100% 100%;)
2022-07-08 01:07:00 【Intelligent control and optimization decision Laboratory of Cen】
background: #000 url(img1.jpg) no-repeat fixed center center;
background-size: cover; perhaps (background-size: 100% 100%;)
Pay attention to writing well background Then write background-size, Otherwise it will be useless , Bear in mind , I wasted more than an hour here
100% and cover The difference between the two is roughly as follows
background-size in ,100% and cover Are used to enlarge or zoom the image to fit the entire container
background-size:100% 100%;--- Fill up in proportion to the container , Image distortion ;
background-size:cover;--- Enlarge the background image to fit the element container , The scale of the picture is the same , But be careful , The part beyond the container may be cut off .
I personally feel that background-size:100%,100%;
Better effect
Original picture
边栏推荐
- Cve-2022-28346: Django SQL injection vulnerability
- NTT template for Tourism
- 图像数据预处理
- 14.绘制网络模型结构
- A network composed of three convolution layers completes the image classification task of cifar10 data set
- Mathematical modeling -- knowledge map
- 跨模态语义关联对齐检索-图像文本匹配(Image-Text Matching)
- DNS series (I): why does the updated DNS record not take effect?
- [note] common combined filter circuit
- Marubeni official website applet configuration tutorial is coming (with detailed steps)
猜你喜欢
14. Draw network model structure
2. Nonlinear regression
[go record] start go language from scratch -- make an oscilloscope with go language (I) go language foundation
完整的模型验证(测试,demo)套路
Su embedded training - Day9
Service mesh introduction, istio overview
3. MNIST dataset classification
Fofa attack and defense challenge record
Using GPU to train network model
2022-07-07: the original array is a monotonic array with numbers greater than 0 and less than or equal to K. there may be equal numbers in it, and the overall trend is increasing. However, the number
随机推荐
6. Dropout application
[reprint] solve the problem that CONDA installs pytorch too slowly
Complete model verification (test, demo) routine
What has happened from server to cloud hosting?
Hotel
Invalid V-for traversal element style
NVIDIA Jetson test installation yolox process record
ReentrantLock 公平锁源码 第0篇
Su embedded training - Day7
STL--String类的常用功能复写
10.CNN应用于手写数字识别
7. Regularization application
Introduction to ML regression analysis of AI zhetianchuan
11.递归神经网络RNN
7.正则化应用
[deep learning] AI one click to change the sky
12.RNN应用于手写数字识别
Malware detection method based on convolutional neural network
1. Linear regression
Fundamentals - integrating third-party technology