2013-04-15 144 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; 
    ... 
}