我想在每個使用PHP的頁面中包含一個標題,以便在編輯標題時我不必在每個頁面上都更改它。不過,我很確定,如果我這樣做,相關鏈接將根據PHP所包含的頁面執行。使用絕對鏈接執行此操作有任何問題嗎?對不起,如果這是一個簡單的問題,只是想知道是否有任何相關的規則。在PHP中使用絕對鏈接包含的標題
<header>
<div class="navbar">
<a href="/"><img style="margin:10px;" src="../images/logo.png" alt="logo"/></a>
<a href="/"><img style="position:relative;bottom:14px;" src="../images/line.png" alt="line"/> </a>
<a href="/"><img class="navbaricon" id="one" src="../images/home.png" alt="home"/></a>
<a href="JavaScript:void(0);"><img class="navbaricon" id="two" src="../images/artist.png" alt="artists"/></a>
<a href="../releases"><img class="navbaricon" id="three" src="../images/releases.png" alt="releases"/></a>
<a href="../join"><img class="navbaricon" id="four" src="../images/join.png" alt="join"/></a>
</div>
<div class="artists">
<div class="artistlinks">
<p>Brady Hartvigsen</p>
<a href="../artists/bradyhartvigsen"><img src="../images/artists/bradymain.jpg" alt="Brady Hartvigsen"/></a>
<p>Catalyst</p>
<a href="../artists/catalyst"><img src="../images/artists/catalystmain.jpg" alt="Catalyst"/></a>
<p>Emmi Moffitt</p>
<a href="../artists/emmimoffitt"><img src="../images/artists/emmimain.jpg" alt="Emmi Moffitt"/></a>
<p>Frederik Jyll</p>
<a href="../artists/frederikjyll"><img src="../images/artists/fredmain.jpg" alt="Frederik Jyll"/></a>
<p>J.R. Hansen</p>
<a href="../artists/jrhansen"><img src="../images/artists/jrmain.jpg" alt="JR Hansen"/></a>
<p>Kate Berry</p>
<a href="../artists/kateberry"><img src="../images/artists/katemain.jpg" alt="Kate Berry"/></a>
<p>Ryan Cluff</p>
<a href="../artists/ryancluff"><img src="../images/artists/ryanmain.jpg" alt="Ryan Cluff"/></a>
<p>Silter</p>
<a href="../artists/silter"><img src="../images/artists/siltermain.jpg" alt="Silter"/></a>
</div>
</div>
<script>
$("a:nth-child(4)").click(function() {
$(".artists").animate({width:'toggle'},500);
});
</script>
</header>
這是我的頭現在看起來像
代碼請.... – 2013-05-03 04:28:31
不存在沒有包含絕對鏈接的規則。 – 2013-05-03 04:29:36