我正在制作一个小型网站(学校项目),但我的背景根本不会出现!我试过移动图像/路径,而不是将它添加到身体。代码有什么问题,还是其他什么?
* {
box-sizing: inherit;
padding: 0;
margin: 0;
}
body {
padding: 0;
margin: 0;
background-color: #FFF;
-webkit-font-smoothing: antialiased;
}
a {
color: hsla(37, 39%, 72%, 1.00);
text-decoration: none;
}
li {
list-style: none;
}
.header {
background: url(img/background.jpg);
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
width: 100vw;
height: 100vh;
display: block;
}
<header class="header">
<section class="logo">ℬ</section>
<section class="nav-icon">
<span class="icon"></span>
</section>
<section class="nav-overlay"></section>
<nav class="navigation">
<ul class="navigation__ul">
<li><a href="#">Banan</a></li>
<li><a href="#">Eple</a></li>
<li><a href="#">Druer</a></li>
<li><a href="#">Pære</a></li>
<li><a href="#">Appelsin</a></li>
</ul>
</nav>
</header>
<main class="main-content">
</main>
提前致谢:)
答案 0 :(得分:0)
尝试将背景标记更改为背景图像
$getUid = $_REQUEST['uid'];
$meta_query_args = array(
'relation' => 'AND', // Optional, defaults to "AND"
array(
'post_type' => 'polls',
'post_status' => 'publish',
'key' => 'participants',
'value' => [$getUid],
'compare' => "NOT IN"
)
);
$meta_query = new WP_Meta_Query( $meta_query_args );