PHP。卧槽!第一次看见这么写返回上级的。

WBOY
Release: 2016-06-06 20:47:38
Original
1049 people have browsed it

<code><a href="./"><img  src="images/logo.png" alt="PHP。卧槽!第一次看见这么写返回上级的。" ></a>
</code>
Copy after login
Copy after login

不过实际上并没有起效果。怎样用巧妙的写法让它生效?

回复内容:

<code><a href="./"><img  src="images/logo.png" alt="PHP。卧槽!第一次看见这么写返回上级的。" ></a>
</code>
Copy after login
Copy after login

不过实际上并没有起效果。怎样用巧妙的写法让它生效?

<code class="lang-html"><a href="./">...</a>
</code>
Copy after login

会返回到当前目录的默认页面。

<code class="lang-html"><a href="../">...</a>
</code>
Copy after login

也许是你想要的,返回上级目录的默认页面。

<code class="lang-html"><a href="/">...</a>
</code>
Copy after login

顺便多废话一句,返回域名主目录的默认页面这样就行。

应该是../吧 而且看意思,你是想点logo回到首页。配置文件里写死的吧一般都是- -#

补充一下P酱的,题主若用../麻烦还可以设置base标签,详情请自行Google之

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!