gpt4 book ai didi

html - 如何仅使用 css(不使用 jQuery)淡化背景颜色?

转载 作者:太空宇宙 更新时间:2023-11-04 08:42:38 30 4
gpt4 key购买 nike

如何仅使用 CSS(不使用 jQuery)淡化背景颜色?这是我的 HTML:

h1 {
text-align: center;
font-size: 500%;
font-family: sans-serif;
color: white;

}

ul {
display:inline-block;
color:white;
margin-left:100px;
font-size: 200%;
font-family: sans-serif;
}

div {

background: black; /* For browsers that do not support gradients */
background: -webkit-linear-gradient(top, black); /* For Safari 5.1 to 6.0 */ /* For Opera 11.1 to 12.0 */ /* For Firefox 3.6 to 15 */
background: -webkit-linear-gradient(top, black);
background: -webkit-linear-gradient(top, #B00000);
background: -webkit-linear-gradient(top, #B0C4);
background: -webkit-linear-gradient(top, #B0C4DE);
background: linear-gradient(to bottom, #B0C4DE); /* Standard syntax */
}
<div id="overlay">
<h1>Mechanics of JWT</h1>
<br />
<br />
<ul>
<li>Use JJWT (https://github.com/jwtk/jjwt) for Java</li>
<li>Developed and maintained by Stormpath <br />(https://stormpath.com/)</li>
</ul>
</div>

最佳答案

这是您要找的吗?

h1 {
text-align: center;
font-size: 500%;
font-family: sans-serif;
color: white;

}

ul {
display:inline-block;
color:white;
margin-left:100px;
font-size: 200%;
font-family: sans-serif;
}

div {

background: black; /* For browsers that do not support gradients */
background: -webkit-linear-gradient(top, black); /* For Safari 5.1 to 6.0 */ /* For Opera 11.1 to 12.0 */ /* For Firefox 3.6 to 15 */
background: -webkit-linear-gradient(top, black);
background: -webkit-linear-gradient(top, #B00000);
background: -webkit-linear-gradient(top, #B0C4);
background: -webkit-linear-gradient(top, #B0C4DE);
background: black linear-gradient(black 0, #B0C4DE 100%); /* Standard syntax */
}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="wingspan.css">
</head>
<body>

<div id="overlay">
<h1>Mechanics of JWT</h1>

<br />
<br />

<ul>
<li>Use JJWT (https://github.com/jwtk/jjwt) for Java</li>
<li>Developed and maintained by Stormpath <br />(https://stormpath.com/)</li>
</ul>
</div>

</body>
</html>

关于html - 如何仅使用 css(不使用 jQuery)淡化背景颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44005697/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com