эй, я создаю html-документ, и я хочу, чтобы он был таким, чтобы, когда кто-то посещает страницу и включает noscript, он делал всю страницу черной и отображал белый текст с надписью «включить JavaScript», вот мой код:
<noscript>
<style>
.noscript{
width: 4000px;
height: 4000px;
position: fixed;
top: 50%;
left: 60%;
transform: translate(-50%, -50%);
background: black;
}
.noscriptext{
width: 400px;
height: 100px;
position: fixed;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center; font-size: 100%;
color: white;
}
</style>
<div class="noscriptext"><h1>to use this you must enable javascript</h1></div>
</noscript>
<div class="noscript"> </div>
но это не работает, помогите пожалуйста? Я пробовал это: Стили тела для тега noscript?, но ничего. изображения: https://imgur.com/a/KRqXS