इसलिए मुझे एक समस्या है जो मुझे लगता है कि काफी सामान्य है लेकिन मुझे अभी तक इसके लिए एक अच्छा समाधान नहीं मिला है। मैं एक ओवरले कवर को ENTIRE पेज बनाना चाहता हूं ... सिर्फ व्यूपोर्ट नहीं। मुझे समझ नहीं आ रहा है कि ऐसा करना इतना कठिन क्यों है ... मैंने बॉडी सेट करने की कोशिश की है, html 100% इत्यादि। लेकिन वह काम नहीं कर रहा है। यह है, जो कि अभी तक मेरे पास है:
<html>
<head>
<style type="text/css">
.OverLay { position: absolute; z-index: 3; opacity: 0.5; filter: alpha(opacity = 50); top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; background-color: Black; color: White;}
body { height: 100%; }
html { height: 100%; }
</style>
</head>
<body>
<div style="height: 100%; width: 100%; position: relative;">
<div style="height: 100px; width: 300px; background-color: Red;">
</div>
<div style="height: 230px; width: 9000px; background-color: Green;">
</div>
<div style="height: 900px; width: 200px; background-color: Blue;"></div>
<div class="OverLay">TestTest!</div>
</div>
</body>
</html>
अगर कोई मौजूद है, तो मैं भी जावास्क्रिप्ट में एक समाधान के लिए खुला रहूंगा, लेकिन मैं कुछ सरल सीएसएस का उपयोग करूंगा।