简体   繁体   English

HTML中的超链接问题,Google Chrome浏览器的CSS问题

[英]Issue with hyperlinks in HTML, CSS for Google Chrome browser

I have created a website for a guesthouse. 我为宾馆创建了一个网站。 www.excelhome.co.in In it I have 4 hyperlinks in the menu bar and all of them works fine in the home page. www.excelhome.co.in在其中我在菜单栏中有4个超链接,所有这些超链接在主页上都可正常工作。 But the same hyperlinks don't work in any other pages and this issue is only with Google chrome. 但是相同的超链接在任何其他页面中都不起作用,并且此问题仅适用于Google Chrome。

Below is the hyperlink code: 以下是超链接代码:

        a.one
           {
              color:#ddd;
                  text-decoration:none;
           }

        <td align="center"; style="width:10%;">
                 <a class="one"; href ="Index.htm">Home</a>
        </td>

With all other browsers all pages and links work fine. 对于所有其他浏览器,所有页面和链接都可正常工

Remove the semi-colon from within the a (anchor) element, it is invalid and may well be causing problems. 从a(anchor)元素中删除分号,它是无效的,可能会导致问题。

Looking through the source code and validation summary (see http://validator.w3.org/ ), the majority of errors are related to misplaced semicolons within element declarations. 查看源代码和验证摘要(请参阅http://validator.w3.org/ ),大多数错误与元素声明中错误放置的分号有关。 There are also a number of obsolete attributes used which should be replaced by CSS properties (either using an inline style attribute, or external stylesheet). 还有一些过时的属性应该被CSS属性替换(使用内联样式属性或外部样式表)。

I only have a tablet with me at the moment, so can't inspect in more detail, but you certainly want to look into how you manage your layout - the twenty-four non-breaking spaces should probably be replaced with margin or padding for example. 我现在只有一台平板电脑,所以不能更详细地检查,但你当然想看看你如何管理你的布局 - 二十四个不间断的空间应该用边距或填充代替例。

You've covered the links up with a massive, positioned element with id="Layer1" . 你已经用id="Layer1"的大量定位元素覆盖了链接。 The clicks aren't reaching the links because they are being intercepted by it. 点击不会到达链接,因为它们被截获。

Absolute positioning is something that should be used with a very, very light touch. 绝对定位应该与非常轻微的触摸一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM