gpt4 book ai didi

html - 标题背景不显示的问题

转载 作者:行者123 更新时间:2023-11-28 13:55:17 25 4
gpt4 key购买 nike

<分区>

我正在尝试在图片上方设置标题的黄色背景。文字很好,但不是黄色。如果我在图像上留一些边距看起来不错

谢谢大家

https://codepen.io/pg2777/pen/oNNErMw

<article id="post-106" class="post-106 post type-post status-publish 
format-standard has-post-thumbnail hentry category-news">
<img width="810" height="520"
src="https://cdn.pixabay.com/photo/2019/07/21/07/12/new-york-
4352072_960_720.jpg" class="attachment-post-thumbnail size-post-thumbnail
wp-post-image" alt="" <header class="entry-header
article_news_header">
<h1 class="entry-title">This is a header and
it&rsquo;s here to do the show </h1>
</header>
<div class="entry-content">
<p>And this is the subheader excerpt. And this is the
subheader excerpt. And this is the subheader excerpt. And this is the
subheader excerpt.</p>

</div>
</article>

.article_news_header{
background-color:#ffe400;
margin-top:-50px;
z-index:9;
width:30%;

}
.category-news img{
border:11px solid purple;
z-index:3;
margin-left:40px;
}


.entry-title {

font-size: 28px;
margin-top:-30px;
background-color:yellow;
margin-bottom:80px;
width:20%;
color:red;
z-index:6;
height:100px;
}

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