【问题标题】:php footer links [closed]php页脚链接[关闭]
【发布时间】:2013-04-08 03:34:36
【问题描述】:

如何让页脚的页眉成为链接?目前我有这个代码:

                    <div id="footer">
                     <div id="foot">
                     <ul class="clearfix">
                  <li>Stores 
                     <ul>
            <li><a href="/stores/speedway">Speedway</a></li>
            <li><a href="/stores/ina">Ina</a></li>
            <li><a href="/stores/grant">Grant</a></li>
            <li><a href="/stores/phoenix">Phoenix</a></li>
            <li><a href="/stores/mesa">Mesa</a></li>
            <li><a href="/stores/flagstaff">Flagstaff</a></li>
        <li><a href="/stores/sports">Sports Exchange</a></li>
    </ul>
</li>

我希望标题 STORES 成为链接或可点击并转到商店的主页我如何在不更改白色的情况下做到这一点。 我该怎么做。

【问题讨论】:

  • 你应该为lia定义正确的CSS样式

标签: php html css wordpress hyperlink


【解决方案1】:

只需使用内联样式来覆盖颜色。

<a href="/stores/" style="text-decoration:none;color:white">Stores</a>

【讨论】:

    【解决方案2】:

    您可以在 onclick 事件中使用 jQuery 或 JavaScript 来执行链接行为。

    <li id="#stores" onclick="location.href='/stores/';">Stores
    ...
    

    然后您在样式表中为商店 ID 设置样式:

    #stores {
       color: white;
       ...
    }
    

    【讨论】:

      猜你喜欢
      • 2014-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-08
      相关资源
      最近更新 更多