最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - href not redirecting to new URL - Stack Overflow

programmeradmin2浏览0评论

I am making a desktop theme website for practicing purposes and I cannot seem to redirect my current page to a normal website such as Google. I think the problem lies with the href.

  <li><a href="" ></a><span class = "icon-google-plus2 "></span>&nbsp; Google +</li>

I would post all the code but its quite lengthy. I have read up about the problem where the javascript may interfere but I am barely using it so I doubt that is where the problem lies.

TIA.

I am making a desktop theme website for practicing purposes and I cannot seem to redirect my current page to a normal website such as Google. I think the problem lies with the href.

  <li><a href="http://www.google.co.za" ></a><span class = "icon-google-plus2 "></span>&nbsp; Google +</li>

I would post all the code but its quite lengthy. I have read up about the problem where the javascript may interfere but I am barely using it so I doubt that is where the problem lies.

TIA.

Share Improve this question asked Apr 10, 2017 at 13:45 AquasylumAquasylum 593 silver badges10 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 9

your link don't have any content... you have to wrap your span with a tag:

<li>
    <a href="http://www.google.co.za" >
        <span class = "icon-google-plus2 "></span>
        &nbsp; Google +
    </a>
</li>
发布评论

评论列表(0)

  1. 暂无评论