【问题标题】:Link pointing to different pages指向不同页面的链接
【发布时间】:2019-02-07 15:00:07
【问题描述】:

我有以下编码:

<style type="text/css">
    .clsLink {
        position: absolute;
        width: 100%;
        height: 1300px;
    }
</style>

<a href="http://www.somewhere.com" class="clsLink"></a>

我需要链接根据用户在页面中点击的位置指向不同的页面。

链接将分为三个区域:

  • 左区:calc((100% - 960px)/2)
  • 中间区域:960 像素
  • 右区:calc((100% - 960px)/2)

    我该如何处理这个问题?

【问题讨论】:

标签: css href


【解决方案1】:

三个链接标签并排显示为一个链接,试试这个:

html:

<a href="http://www.somewhere1.com" class="clsLink">please</a>
<a href="http://www.somewhere2.com" class="clsLink">click</a>
<a href="http://www.somewhere3.com" class="clsLink">here</a>

css:

 .clsLink {
    width: 100%;
    height: 1300px;
    text-decoration: none;
 }

【讨论】:

    猜你喜欢
    • 2013-05-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-04
    • 2015-04-04
    • 2023-04-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多