gpt4 book ai didi

html - CSS - 颜色不变

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

我正在尝试修复我的文本颜色的颜色,它只是白色,与背景颜色相同,尽管它的颜色设置为:#1a6eb6 并且它在#submenu ul li .text 中设置为相同的值我是prettz 迷路了,有人可以帮助我吗?

我的 HTML:

  <span id="right">
<ul>
<li><span class="blue-arrow"></span><span class="newsheading"><a href="#">Gamesites má nový web ou jeeee!</a></span><span class="blueballoon">10</span><span class="balloon">10</span></li>
<li><span class="blue-arrow"></span><span class="newsheading"><a href="#">Gamesites má nový web ou jeeee!</a></span><span class="blueballoon">10</span><span class="balloon">10</span></li>
<li><span class="blue-arrow"></span><span class="newsheading"><a href="#">Gamesites má nový web ou jeeee!</a></span><span class="blueballoon">10</span><span class="balloon">10</span></li>
<li><span class="blue-arrow"></span><span class="newsheading"><a href="#">Gamesites má nový web ou jeeee!</a></span><span class="blueballoon">10</span><span class="balloon">10</span></li>
<li><span class="blue-arrow"></span><span class="newsheading"><a href="#">Gamesites má nový web ou jeeee!</a></span><span class="blueballoon">10</span><span class="balloon">10</span></li>
</ul>
</span>

我的 CSS:

#submenu{
color: #1a6eb6;
display: inline-block;
height: 50px;
width:780px;
}

#submenu ul {
margin-left: 20px;
padding-left: 0px;
}

#submenu ul li{
list-style-position: inside; /* Bodka v novom riadku vo vnutry */
list-style-type: none; /* bez bodky */
background-image: url("images/shop_menu_bg.png");
background-repeat: repeat-x;
height: 38px;
width: 187px;
display: inline-block;
color: #1a6eb6;
}

#submenu ul li:hover {
background-image: url("images/shop_menu_bg_hover.png");
width: 187px;
height: 38px;
}

#submenu ul li .text{
color: #1a6eb6;
display: inline-block; /* aby sa dala rovnomerne posunut sipka a nie podla dlzky textu*/
height: 31px;
width:115px;
line-height: 28px;
margin-left: 5px;
}

#submenu ul li .horizontal-arrow{
background-image: url("images/horizontal_arrow.png");
background-repeat: repeat-x;
display: inline-block;
height: 19px;
width: 14px;
margin: 0px 0px 0px 45px;
vertical-align: middle;
}

#submenu ul li:hover .horizontal-arrow{
display:none;
}

#submenu ul li .vertical-arrow{
background-image: url("images/vertical_arrow.png");
background-repeat: repeat-x;
display:none;
height: 12px;
width: 19px;
margin: 0px 0px 0px 45px;
}

#submenu ul li:hover .vertical-arrow{
display: inline-block;
}

最佳答案

不应该吗

<span class="submenu">

关于html - CSS - 颜色不变,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22994276/

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