gpt4 book ai didi

html - 内联 block anchor 标记不合适有人可以告诉我为什么吗?

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

建立一个新站点,并处理一个新闻行情,它下面有用于导航的散列标记。井号位于 ticker 模块底部的绝对 div 中。 div 内部是 anchor 标记和一些间隔符,它们在它们应该渲染的位置下方呈现,我似乎无法确定原因,有人可以看一下并帮助我吗?

http://race.3drexstaging.com/Home是链接。

感谢您的帮助

HTML

<div class="dnnForm Normal NewsFeedHolder">
<div class="newsFeedInner">

<div class="feedItems" id="newsItem0">
<span class="feedTitles">Featured Promotions : </span>
<span class="feedTexts">Example - 50% OFF SALE! On Select Products and Services</span>
</div>

<div class="feedItems inactive active" id="newsItem1">
<span class="feedTitles">Another Headline : </span>
<span class="feedTexts">You can put info about another sale here</span>
</div>

<div class="feedItems inactive" id="newsItem2">
<span class="feedTitles">Yet Another Headline : </span>
<span class="feedTexts">More information about your sale</span>
</div>

</div>
<div class="newsFeedNavs">
<div class="newsFeedNavsInner">

<a class="newsNavItems" id="newsNavItem0" href="javascript:getNewsItem(0)"></a>

<span class="newsSpacer"></span>

<a class="newsNavItems inactive active" id="newsNavItem1" href="javascript:getNewsItem(1)"></a>

<span class="newsSpacer"></span>

<a class="newsNavItems inactive" id="newsNavItem2" href="javascript:getNewsItem(2)"></a>

</div>
</div>
</div>

当前的 CSS:

.feedItems
{
color: white;
}
.feedTitles
{
font-weight: bold;
color: #ce0d25;
margin-right: 10px;
}
.feedTexts
{

}
.NewsFeedHolder
{
position: relative;
}
.newsFeedInner
{
padding-top: 15px;
padding-bottom: 15px;
text-align: center;
font-size: 10pt;
}
.newsFeedNavs
{
text-align: center;
position: absolute;
height: 2px;
bottom: -2px;
left: 0px;
right: 0px;
}
.newsFeedNavsInner {
height: 2px;
display: inline-block;
background-color: black;
padding-right: 15px;
padding-left: 15px;
}
.newsNavItems
{
display: inline-block;
width: 15px;
height: 2px;
overflow: hidden;
text-indent: -9999px;
background-color: white;
line-height: 2px;
margin: 0px;
padding: 0px;
}
a.newsNavItems:hover, a.newsNavItems.active
{
background-color: red;
}
.feedItems
{
display: none;
}
.feedItems.active
{
display: block;
}
.newsSpacer {
display: inline-block;
width: 15px;
line-height: 2px;
height: 2px;
margin: 0px;
padding: 0px;
}

最佳答案

enter image description here

.newsFeedNavsInner {
height: 2px;
display: inline-block;
background-color: black;
padding-right: 0;
padding-left: 30px;
}
.newsNavItems {
display: block;
float: left;
width: 15px;
height: 2px;
overflow: hidden;
text-indent: -9999px;
background: white;
line-height: 2px;
margin: 0 10px;
padding: 0px;
}

enter image description here

.newsFeedNavsInner {
height: 2px;
display: inline-block;
background-color: black;
padding-right: 15px;
padding-left: 15px;
}
.newsNavItems {
display: block;
float: left;
width: 15px;
height: 2px;
overflow: hidden;
text-indent: -9999px;
background: white;
line-height: 2px;
margin: 0;
padding: 0;
}
.newsSpacer {
display: inline-block;
float: left;
width: 15px;
line-height: 2px;
height: 2px;
margin: 0px;
padding: 0px;
}

关于html - 内联 block anchor 标记不合适有人可以告诉我为什么吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18860730/

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