当前位置:网站首页>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边栏推荐
- 力扣解法汇总868-二进制间距
- State owned assets into shares, has Jianye real estate stabilized?
- Force deduction solution summary 883- projected area of 3D shape
- Force deduction solution summary 358 Mini parser
- Is there a female Bluetooth headset suitable for girls? 38 Bluetooth headsets worth getting started
- Summary of force deduction method 417- Pacific Atlantic current problems
- [no title] 2022 coal mine safety inspection test questions and online simulation test
- The most comprehensive redis transaction control in 2022 (with illustration)
- Implementation scheme of iteration and combination pattern for general tree structure
- Research Report on Chinese psoriasis drug market evaluation and investment direction (2022 Edition)
猜你喜欢

Don't miss it! Five large data visualization screens that HR must collect

Installing MySQL version 5.5 database for Linux (centos6)

Knowledge points of mall development
![[adjustment] notice on the opening of the 2022 pre adjustment system for postgraduate enrollment of Shanghai Second University of Technology](/img/16/2f9a235995cdd54ac9b85a68a7afcb.jpg)
[adjustment] notice on the opening of the 2022 pre adjustment system for postgraduate enrollment of Shanghai Second University of Technology

El upload upload file

消防栓监测系统毕业设计---论文(附加最全面的从硬件电路设计->驱动程序设计->阿里云物联网搭建->安卓APP设计)

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

ACL2022 | DCSR:一种面向开放域段落检索的句子感知的对比学习方法

matplotlib. pyplot. Bar chart (II)

混泥土(地面+墙面)+ 山体裂缝数据集汇总(分类及目标检测)
随机推荐
力扣解法汇总944-删列造序
Graphic data analysis | data cleaning and pretreatment
力扣解法汇总933-最近的请求次数
Force deduction solution summary 1037- effective boomerang
UE4\UE5触摸屏touch事件:单指、双指
State owned assets into shares, has Jianye real estate stabilized?
leetcode:6. Zigzag transformation
Transformation of geographical coordinates of wechat official account development
2022 Fujian Provincial Safety Officer C certificate (full-time safety officer) examination simulation 100 questions and answers
String number with special style
力扣解法汇总868-二进制间距
A mystery of the end of vagrant up
Metaverse × How will smart cities develop?
力扣解法汇总388-文件的最长绝对路径
Force deduction solution summary 675- cutting trees for golf competition
Force deduction solution summary interview question 01.05 Edit once
Package a mobile APK app containing watch app - ticwear
力扣解法汇总358-迷你语法分析器
Force deduction solution summary 398 random number index
How to automatically color cells in Excel
