当前位置:网站首页>Flex / fixed Upper, Middle and Lower (Mobile end)
Flex / fixed Upper, Middle and Lower (Mobile end)
2022-06-12 05:34:00 【Xibing Bar Xibing Bar _ G】
Programme I:Non utiliséfixed
html{
height:100vh;
/* Si ce n'est pas pour100%,On dirait que c'est automatique,Alors la barre de bas va en bas(Hors du viewport) */
font-size:26.667vw;
/*
100vw=375px 1px=0.26667vw
Pour faciliter le calcul, définissezfont-sizePour100px,C'est - à - dire26.667vw
Pour réaliser le changement suivant l'écran,C'est pour ça quevwNiveau de référence,Au lieu de fixerpx
*/
}
body{
width:100%;
height:100%;
/* Si ce n'est pas pour100%(Père Gao100%),On dirait que c'est automatique,Alors la barre de bas va en bas(Hors du viewport) */
display: flex;
font-size: 0.16rem;
flex-direction: column;
}
header{
height:.67rem;
/* Mesuré67pxC'est 67/(htmlDefont-size)=67/100=0.67rem */
}
main{
flex:1;
overflow:auto;
}
footer{
height:.5rem;
}Programme II:Utiliserfixed
html{
height:100vh;
/* Si ce n'est pas pour100%,On dirait que c'est automatique,Alors la barre de bas va en bas(Hors du viewport) */
font-size:26.667vw;
/*
100vw=375px 1px=0.26667vw
Pour faciliter le calcul, définissezfont-sizePour100px,C'est - à - dire26.667vw
Pour réaliser le changement suivant l'écran,C'est pour ça quevwNiveau de référence,Au lieu de fixerpx
*/
}
body{
width:100%;
height:100%;
/* Si ce n'est pas pour100%(Père Gao100%),On dirait que c'est automatique,Alors la barre de bas va en bas(Hors du viewport) */
font-size: 0.16rem;
}
header{
height:.67rem;
/* Mesuré67pxC'est 67/(htmlDefont-size)=67/100=0.67rem */
positon:fixed;
left:0;
bottom:0;
}
main{
overflow:auto;
padding-top:0.67rem;
/* Parce queheaderFixe.,Hors flux de documents, C'est pour ça qu'il faut pousser un peu plus bas pour montrer main De header Une partie du contenu masqué */
padding-bottom:.5rem;
/* Correspondant àfooterLa hauteur de, Évitez d'être masqué par le bas , Pressez vers le haut */
}
footer{
height:.5rem;
positon:fixed;
left:0;
bottom:0;
}边栏推荐
- [JS knowledge] easily understand JS anti shake and throttling
- Detailed explanation of WiFi 802.1x authentication process
- 论文阅读_图神经网络GIN
- 38. 外观数列
- 公司注册认缴资金多久
- Lesson 5: data warehouse construction (III)
- It costs less than 30 yuan, but we still don't build it quickly - check the small knowledge of software application
- C language - how to define arrays
- WiFi band resources
- 49. ugly number
猜你喜欢

WebRTC AEC 流程解析
![[getting to the bottom] five minutes to understand the combination evaluation model - fuzzy borde (taking the C question of the 2021 college students' numerical simulation national competition as an e](/img/2e/97310ec36aeb1fc1e9c82361141a36.jpg)
[getting to the bottom] five minutes to understand the combination evaluation model - fuzzy borde (taking the C question of the 2021 college students' numerical simulation national competition as an e

beginning一款非常优秀的emlog主题v3.1,支持Emlog Pro

深入理解异步编程

4.3 simulate browser operation and page waiting (display waiting and implicit waiting, handle)

Quickly get PCA (principal component analysis) (principle code case)

Legal liabilities to be borne by the person in charge of the branch

week7

Detailed usage of vim editor

Selenium crawler automatically captures TOEFL test position of NEEA website
随机推荐
按键精灵的简单入门
Performance test - performance test tool analysis
49. ugly number
FPGA语法的细节
Classes and objects, methods and encapsulation
Reverse linked list
Servlet core
20. string representing numeric value
Detailed analysis of mathematical modeling problem a (vaccine production scheduling problem) of May Day cup in 2021
How long is the company's registered capital subscribed
Stm32f4 ll library multi-channel ADC
Please remove any half-completed changes then run repair to fix the schema history
Towards End-to-End Lane Detection: an Instance SegmentationApproach
12.24 day exercise -- Programming summation, 99 multiplication table, while loop and for loop exercises
Multi thread learning 4. Sleep, wait, yield, join (), ThreadGroup control the running of threads
Qs100 at command mqtt access thingsboard
Multi thread learning III. classification of threads
How Wireshark decrypts WiFi data packets
About architecture (in no particular order)
Role and understanding of proc/cmdline