网页a
" _src="https://b.com/">">https://b.com/">>
b.com内的超链接带有"target="_blank"属性点击超链接直接打开新窗口了,如何让点击超链接后,还是在iframe内显示?
我试过
$url="https://b.com"
$html= file_get_contents($url);
$str = str_replace("_blank","_self",$html);
echo ''
?>
可这样输出的iframe是白板,直接echo $str,看了下没法直接使用,有没办法解决这问题?我找了好多地方都没办法解决,对了,b.com不是我的,所以改name没法
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号