2013-04-15 147 views
-1

我如何获得我的页脚成为链接的标题?目前,我有这样的代码:PHP页脚链接

    <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> 

我想报头门店成为一个链接或点击能和去的主网页商店我如何做到这一点不改变其颜色为白色。 我该怎么做。

+0

你应该定义正确的CSS样式'li'和'了' – zavg

回答

1

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

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

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

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

然后你设置的样式在样式表的店铺ID:

#stores { 
    color: white; 
    ... 
}