脚本宝典收集整理的这篇文章主要介绍了在一个php include中显示certian div,在另一个php中显示所有div,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
index.PHP content.PHP list.PHP problems.PHP
index.PHP具有以下内容:<?PHP include“list.PHP”;包括“problems.PHP”; ?取代. list.PHPand problems.PHPcontains< PHP include“content.PHP”; ?> content.PHPhave以下内容:
<div class="up">This location is up</div> <div class="down">This location is down</div>
如何使用list.PHP显示content.PHP的所有内容,并且只在problems.PHP中显示div class =“down”的内容?
我试着补充一下
<style> .up {display:none} </style>
在problems.PHP中,但这从两个include中删除了所有div class =“up”.
谢谢!
以上是脚本宝典为你收集整理的在一个php include中显示certian div,在另一个php中显示所有div全部内容,希望文章能够帮你解决在一个php include中显示certian div,在另一个php中显示所有div所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。