Css 为什么我的背景图像没有';当我把url链接放进去时,它不会出现吗?我该如何修复我的按钮(它们不能跟随导航栏)?
这是我的问题代码,并给我一些关于公文包的建议,请在任何CSS过梁中运行您的CSS,您将知道原因 在解决了一些问题并通过CSS美化器运行后,您的CSS工作正常Css 为什么我的背景图像没有';当我把url链接放进去时,它不会出现吗?我该如何修复我的按钮(它们不能跟随导航栏)?,css,Css,这是我的问题代码,并给我一些关于公文包的建议,请在任何CSS过梁中运行您的CSS,您将知道原因 在解决了一些问题并通过CSS美化器运行后,您的CSS工作正常 body, html { width: 100%; height: 100%; } body, h1, h2, h3, h4, h5, h6 { font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight:
body,
html {
width: 100%;
height: 100%;
}
body,
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 700;
}
body {
background-image: url("");
background-repeat: no-repeat;
}
.button1 {
background-color: #008CBA;
border: none;
color: white;
padding: 12px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 8px;
}
.button2 {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 8px;
}
.button3 {
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 8px;
}
.intro-message {
position: relative;
padding-top: 20%;
padding-bottom: 20%;
}
.intro-header {
padding-top: 50px;
padding-bottom: 50px;
text-align: center;
background: url('https://40.media.tumblr.com/1b916597d3e174399cb7adadddb66ede/tumblr_nt5uk4psl31ud7rr3o1_1280.jpg') no-repeat center center fixed;
background-size: cover;
height: 855px;
}
li {
float: left;
border-right: 1px solid #bbb;
}
a {
display: block;
padding: 8px;
background-color: #dddddd;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
position: fixed;
top: 0;
width: 100%;
border: 1px solid #e7e7e7;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Change the link color to #111 (black) on hover */
li a:hover {
background-color: #111;
}
.active {
background-color: #4CAF50;
}
li:last-child {
border-right: none;
}
我无法添加正确的链接。因此,最好将问题的关键部分包括在这里,并提供链接以供参考。如果链接页面发生更改,则仅链接的答案可能无效。