锚标签不起作用

时间:2015-06-16 00:56:47

标签: anchor

对于主页上的这个网站(http://carbondirect.net/),右下方我想要将污水气味控制链接到活性炭页面并跳转到污水气味控制部分,但它无法正常工作。它链接到Activated Carbon页面,忽略锚点。

根据一些研究,我尝试添加这个CSS,但它仍然无效:

#sewage-odor-control {
position: fixed;
z-index: 10001;
display: inline-block; 
}

我做了什么明显错误的事吗?如果你能看一下,谢谢。

2 个答案:

答案 0 :(得分:0)

以下是您网站的相关代码:

[cellForRowAtIndexPath:indexPath]

发生了几件奇怪的事情:

  • 第5行:结束<div class="et_pb_toggle et_pb_toggle_close"> <h5 class="et_pb_toggle_title">SEWAGE ODOR CONTROL</h5> <div class="et_pb_toggle_content clearfix"> <span><a id="sewage-odor-control"></a></span> Wet wells and sewage-pumping stations need to be vented to atmosphere, the vapor that is exchanged is contaminated with H2S and mercaptan. They are highly odorous, pungent and extremely objectionable. Specialist impregnated carbon are used to remove H2S to the level below the odor threshold value. The patented products (US patent#6,858,192) invented by our factory are unique catalytic activated carbon not only with high capacity on absorption, but also hazard free during the handling and disposal of spent carbon.</p> <p><a href="http://carbondirect.net/wp-content/uploads/IMP-CD2015.pdf" target="null">IMP-KOH</a>, <a href="http://carbondirect.net/wp-content/uploads/SPEC-of-HiCOR.pdf" target="null">HiCOR</a> </div> <!-- .et_pb_toggle_content --> </div> <!-- .et_pb_toggle --> ,但没有开放</p>
  • 第6行:有一个开头<p>,但没有关闭<p>

此外,您的主播不可见&#39;当你第一次去网站,因为该部分切换为关闭(<\p>),所以可能是导致问题。如果你将标题添加到锚点(很容易看到)会发生什么?

et_pb_toggle_close

答案 1 :(得分:0)

您唯一需要的是将id="sewage-odor-control"添加到目标元素:

<div id="sewage-odor-control" class="et_pb_toggle et_pb_toggle_close">
相关问题