【问题标题】:Load Server Side in iFrame instead of URL在 iFrame 中加载服务器端而不是 URL
【发布时间】:2020-08-28 05:57:20
【问题描述】:

是否有可能iframe来自服务器的源文件而不是URL的意思而不是

   ---> Instead of
<iframe width='100%' height='100%' src='http://example.com/file.php' allowTransparency='yes' frameborder='no' scrolling='no' id='adminheader' > </iframe>

   ---> Load Server Side File
    
    <iframe width='100%' height='100%' src='/home/username/public_html/header.php' allowTransparency='yes' frameborder='no' scrolling='no' id='adminheader' > </iframe>

旨在仅按原样加载标题,并在可能的情况下间接应用某些样式和脚本来访问它。

【问题讨论】:

    标签: php iframe server-side public-html


    【解决方案1】:

    不,因为 iframe 是在客户端呈现的。但我不明白为什么你不能只用 URL 加载它们。

    <iframe src='http://example.com/header.php'>
    

    【讨论】:

      猜你喜欢
      • 2011-05-28
      • 1970-01-01
      • 2013-10-22
      • 2014-12-25
      • 2012-11-10
      • 1970-01-01
      • 2010-11-13
      • 2013-03-13
      • 1970-01-01
      相关资源
      最近更新 更多