gpt4 book ai didi

html - 为什么我的 html 代码没有显示?

转载 作者:太空宇宙 更新时间:2023-11-04 03:15:40 25 4
gpt4 key购买 nike

我添加了一个 Logo 图像,然后在查看 html 时不再显示 header 部分中的代码。新图像似乎与旧内容重叠。我应该做出哪些改变?

<!DOCTYPE html>
<html dir="ltr" lang="en-IN" class="js">
<head>

<link href="/static/css/koolindex_in.css?{{VERSION}}" rel="stylesheet" type="text/css">
<link href="/static/css/common_in2.css?{{VERSION}}" rel="stylesheet" type="text/css">
<link href="/static/css/list_in2.css?{{VERSION}}" rel="stylesheet" type="text/css">


</head>
<body>
{% include "kooltopbar.html" %}


<div id="wrapper">
<h1 id="logo" class="sprite_index_in_in_en_logo spritetext"></h1>




<header>

<nav class="navbar nohistory">
<ul class="inlined">
<li>
<a href="/">{% trans %}Home{% endtrans %}</a>
</li>


<li class="current">
<a href="/customer_service.htm">{% trans %}Customer Service{% endtrans %}</a>
</li>

</ul>
</nav>


</header>

CSS 是

header .navbar {
padding-top: 12px;
}

header .navbar a {
text-transform: uppercase;
}

header {
display: block;
overflow: hidden;
padding-bottom: 8px;
margin-bottom: 16px;
position: relative;
}

header h1 {
margin: 0px;
}

header {
border-bottom: 3px solid #f2663b;
}


.sprite_index_in_in_en_logo {
margin-top: 35px;
width: 1024px;
height: 138px;
background: url(/img/koolindex_in.png?3b31f98c531cac850b1c866f36c9fc3bbdbfbd26) no-repeat -1010px -27px;
}

该问题出现在 google chrome 而不是 internet explorer。在 Internet Explorer 中,页面按预期呈现。

最佳答案

如下所述替换您的类 sprite_index_in_in_en_logo

<style>
header .navbar {
padding-top: 12px;
}

header .navbar a {
text-transform: uppercase;
}

header {
display: block;
overflow: hidden;
padding-bottom: 8px;
margin-bottom: 16px;
position: relative;
}

header h1 {
margin: 0px;
}

header {
border-bottom: 3px solid #f2663b;
}


.sprite_index_in_in_en_logo
{
margin-top: 35px;
width: 1024px;
height: 288px;
background: url(http://www.i2clipart.com/cliparts/4/8/0/e/clipart-simple-leaf-480e.png) no-repeat 0px;
}
</style>
<h1 id="logo" class="sprite_index_in_in_en_logo spritetext"></h1>




<header>

<nav class="navbar nohistory">
<ul class="inlined">
<li>
<a href="/">{% trans %}Home{% endtrans %}</a>
</li>


<li class="current">
<a href="/customer_service.htm">{% trans %}Customer Service{% endtrans %}</a>
</li>

</ul>
</nav>


</header>

关于html - 为什么我的 html 代码没有显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28734715/

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