在iframe的框架内,如果框架内当前页为news.php,里面有个链接指向news.php?id=1,点完后,框架全部空白,也没有加载页面.
就是指向本页链接带参数的无响应
显示内容的位置 定义了没
链接有加target="framename"吗?
链接有加target="framename"吗?
显示内容的位置 定义了没
main.php iframe news.php
news.php 里面有连接,连去news.php?id=1
点击后可以在iframe内跳转。
main.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title> main </title> </head> <body> <iframe src="news.php"></iframe> </body></html>
<?php$id = isset($_GET['id'])? $_GET['id'] : '';echo 'news'.$id.'<br>';echo '<a href="news.php?id=1">news1</a>';?>
main.php iframe news.php
news.php 里面有连接,连去news.php?id=1
点击后可以在iframe内跳转。
main.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title> main </title> </head> <body> <iframe src="news.php"></iframe> </body></html>
<?php$id = isset($_GET['id'])? $_GET['id'] : '';echo 'news'.$id.'<br>';echo '<a href="news.php?id=1">news1</a>';?>
list.php?id=1 点得开
news.php?id=1 点不开
显然是 news.php 有问题!
问题没有找到,换文件名就可以了
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号