gpt4 book ai didi

html - h3 中的背景图片在 IE 上不显示

转载 作者:行者123 更新时间:2023-11-28 11:29:43 24 4
gpt4 key购买 nike

.explorer ul li h2 中的背景图片在 IE 中不显示,但在 chrome 和 firefox 中显示。 .explorer h1 中的背景图片在所有浏览器上都能正确显示。

我有以下 css 和 html

CSS

    .explorer
{
width:100%;
height:240px;
}
.explorer h1
{
display: inline-block;
text-align: center;
font: 300 16px/30px "etica", Arial, "Helvetica Neue", Helvetica, sans-serif;
text-transform: uppercase;
color: #4f2b0d;
width: 100%;
background: url('/images/home-difference.jpg') center center no-repeat;

}
.explorer ul
{
margin:0;
padding:0;
list-style:none;
width:788px;
height:185px;

}
.explorer ul li h2
{
display: inline-block;
text-align: center;
font: 300 16px/30px "etica", Arial, "Helvetica Neue", Helvetica, sans-serif;
text-transform: uppercase;
color: #1b91c2;
width: 100%;
background: url('/images/home-brk.png')no-repeat center bottom;
margin-bottom: 10px;
padding-bottom:18px;
text-shadow:none;

}
.explorer ul li
{
width:230px;
height:185px;
float:left;
padding:0 20px 0 20px;
font-family:Arial, Helvetica, sans-serif;
font: 12px/18px;
color:#6f6f6f;
margin:0;
position:relative;
}
.explorer ul li div
{
background:url(/images/big-btn.png) no-repeat;
width:190px;
height:39px;
color:#6d6129;
font:bold 12px/39px Arial, Helvetica, sans-serif;
position:absolute;
text-align:center;
position:absolute;
bottom:0;
left:30px;
}
.explorer ul li div:hover{ background:url(/images/big-btn-hvr.png) no-repeat;}

我的HTML

<div class="explorer">
<h1>Explore the world of Financial Opportunities</h1>
<ul>
<li>
<h2>Financial Planning</h2>
Explore the power of smart calculators. A conscious effort towards Financial Planning is the CORE TO STRESS FREE LIFE.
<a href="/"><div>Click here to start Planning</div></a>
</li>
</ul>
</div>

最佳答案

试试这个:

background: url('/images/home-brk.png') center bottom no-repeat;

关于html - h3 中的背景图片在 IE 上不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21208987/

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