当前位置:网站首页>How to make div 100% page (not screen) height- How to make a div 100% of page (not screen) height?
How to make div 100% page (not screen) height- How to make a div 100% of page (not screen) height?
2022-06-12 02:20:00 【Superior virtue and weak water】
problem :
I'm trying to use CSS to create a 'greyed out' effect on my page while a loading box is displayed in the foreground while the application is working. I'm trying to use CSS Create a... On my page “ gray ” effect , At the same time, the loading box is displayed in the foreground when the application is running .I've done this by creating a 100% height/width, translucent black div which has its visibility toggled on/off via javascript. I created 100% Height / Width , Translucent black div To achieve this , It passes through javascript open / Turn off its visibility .I thought this would be simple enough; I think it's very simple ;however, when the page content expands to the point that the screen scrolls, scrolling to the foot of the page reveals a portion which is not greyed out. however , When the page content expands to the point where the screen scrolls , Scrolling to the bottom of the page displays a section that is not grayed out .In other words, the 100% in the div's height seems to be applying to the browser viewport size, not the actual page size. let me put it another way ,div High 100% Seems to work for browser viewport sizes , Instead of the actual page size .How can I make the div expand to cover the whole of the page's content? How to make div Expand to cover the entire page ?I've tried using JQuery .css('height', '100%') before toggling it's visibility on but this doesn't change anything. I've tried to use JQuery .css('height','100%') Before switching its visibility , But that hasn't changed anything .
This is the CSS of the div in question: There's a problem div Of CSS:
div.screenMask{ position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 1000; background-color: #000000; opacity: 0.7; filter: alpha(opacity=70); visibility: hidden;}Thanks. thank you .
Solution :
Reference resources : https://stackoom.com/en/question/4D5J边栏推荐
- Leetcode 45 jump game II
- leetcode:6. Zigzag transformation
- 消防栓监测系统毕业设计---论文(附加最全面的从硬件电路设计->驱动程序设计->阿里云物联网搭建->安卓APP设计)
- Acl2022 | DCSR: a sentence aware contrastive learning method for open domain paragraph retrieval
- Xcall cluster script (view JPS command)
- 力扣解法汇总388-文件的最长绝对路径
- 力扣解法汇总732-我的日程安排表 III
- Navicat for MySQL 11 Linux cracking method
- 力扣解法汇总450-删除二叉搜索树中的节点
- [no title] 2022 coal mine safety inspection test questions and online simulation test
猜你喜欢

Hypergraph tilted data is merged into root node and transferred to 3dfiles

Smartbi helps you solve the problem of losing high-value customers

2022最全面的Redis事务控制(带图讲解)

How to stop anti-virus software from blocking a web page? Take gdata as an example

程序员应该如何解决买菜难问题?手把手带你利用无障碍辅助功能快速下单抢菜

ACL 2022 - strong combination of pre training language model and graphic model

El upload upload file

代理与反射(二)

leetcodeSQL:612. Nearest distance on plane
![[adjustment] in 2022, the Key Laboratory of laser life sciences of the Ministry of education of South China Normal University enrolled adjustment students in optics, electronic information, biomedicin](/img/f9/332b206d5aca0ca6afc3fdf11a53c8.jpg)
[adjustment] in 2022, the Key Laboratory of laser life sciences of the Ministry of education of South China Normal University enrolled adjustment students in optics, electronic information, biomedicin
随机推荐
DDD的分层架构
ADB command uses JKS file to sign apk
力扣解法汇总436-寻找右区间
Force deduction solution summary 388- longest absolute path of file
State owned assets into shares, has Jianye real estate stabilized?
Force deduction solution summary 1728- cat and mouse II
MySQL table common operation mind map
Swiftyjson analyse les fichiers json locaux
"China Dongxin Cup" the fourth programming competition of Guangxi University (synchronous competition)
Acl2022 | DCSR: a sentence aware contrastive learning method for open domain paragraph retrieval
The release of star ring kundb 2.2 provides a new choice for business systems with high concurrent transactions and queries
力扣解法汇总-剑指 Offer II 114. 外星文字典
MySQL advanced knowledge points
Implementation scheme of iteration and combination pattern for general tree structure
ozzanimation-基於sse的動作系統
Force deduction solution summary 883- projected area of 3D shape
android html5页面加载缓存优化
Explore performance optimization! Performance improvement from 2 months to 4 hours!
力扣解法汇总868-二进制间距
Graphic data analysis | business cognition and data exploration
