如何实现某一行文字首页不显示但是内页显示

WBOY
Release: 2016-06-23 14:05:56
Original
873 people have browsed it

php菜鸟一个,想知道如何自定义一种标签能实现以下功能:
文章中有一行字,需要在首页不显示,但是点击进入内页后又显示的。
求大神指教


回复讨论(解决方案)

变换标记的 style.display 属性

也可以在程序端做判断,当前页面为主页时候去掉那一行,内页是赋值返回那一行就好了。

可以说的更详细点吗

if(内页){
echo "ABC";
}

点击首页的时候传递一个参数  有这个参数隐藏就可以了

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!