Linux
- 2 ответа
- 0 вопросов
2
Вклад в тег
[Unit]
Description=my daemon
[Service]
ExecStart=/usr/bin/lnav
Restart=on-failure
SuccessExitStatus=3 4
RestartForceExitStatus=3 4
[Install]
WantedBy=default.target
systemctl enable демон@myuser.service
systemctl start демон@myuser.service
After=
Requires=
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2>position: absolute;</h2>
<p>An element with position: absolute; is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed):</p>
<div class="relative">This div element has position: relative;
<div class="absolute">This div element has position: absolute;</div>
</div>
</body>
</html>
div.relative {
position: relative;
width: 400px;
height: 200px;
border: 3px solid #73AD21;
}
div.absolute {
position: absolute;
top: 80px;
right: 0;
width: 200px;
height: 100px;
border: 3px solid #73AD21;
}
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="blocks.css">
<link rel="stylesheet" href="appearance.css">
</head>
<body>
<div>Hello</div>
</body>
</html>
div.relative {
border: 3px solid #73AD21;
}
div.absolute {
border: 3px solid #73AD21;
}
div.relative {
position: relative;
width: 400px;
height: 200px;
}
div.absolute {
position: absolute;
top: 80px;
right: 0;
width: 200px;
height: 100px;
}
@media not|only mediatype and (media feature) {
CSS-Code;
}
переопределять свойства этих блоков.@media screen and (max-width: 90%) {
div {
width:300px;
dislpay: inline-block;
margin:auto;
}
}