GVKun编程网logo

iframe清理seo(iframe边框怎么去掉)(如何去除iframe的边框)

13

在这篇文章中,我们将为您详细介绍iframe清理seo(iframe边框怎么去掉)的内容,并且讨论关于如何去除iframe的边框的相关问题。此外,我们还会涉及一些关于angular-使用iframe做

在这篇文章中,我们将为您详细介绍iframe清理seo(iframe边框怎么去掉)的内容,并且讨论关于如何去除iframe的边框的相关问题。此外,我们还会涉及一些关于angular-使用iframe做独立页(iframe传值到angular和iframe里请求后台数据)、css iframe 边框去掉、flex 嵌入 iframe 点iframe 外面的区域 iframe会消失 解决方法、Flex嵌套Iframe,点击除Iframe的其他地方后,Iframe内容消失的问题的知识,以帮助您更全面地了解这个主题。

本文目录一览:

iframe清理seo(iframe边框怎么去掉)(如何去除iframe的边框)

iframe清理seo(iframe边框怎么去掉)(如何去除iframe的边框)

1. iframe边框怎么去掉

把iframe的边框设置为0才行即width:0px;或者为none你试试

2. iframe去掉边框和滚动条

网站设计使用Iframe缺点一:得罪搜索引擎“蜘蛛” 网站设计使用Iframe最大的弊端就是得罪了搜索引擎的“蜘蛛”,当蜘蛛访问Iframe布局的网站时,它只会看到框架,框架里面的内容是看不到的,也就无法按照顺序解读页面,会认为这个网站是个死站点,以后绝不会再来了。

网站设计使用Iframe缺点二:链接导航问题 使用Iframe布局必须保证正确设定导航链接,否则,被链接的页面呈现在导航框架内,让浏览者无法退后,只能离开。网站设计使用Iframe缺点三:分散访问者注意力 Iframe布局的网站除了有时会让浏览者迷惑,分散注意力之外,还会给浏览者带来浏览麻烦,滚动条会使Iframe布局混乱,让浏览者望而止步。所以iframe通常会用在后台页面的构建山

3. iframe弹出框怎么处理

你是新打开iframe还是新打开的一个tab 如果是新打开的iframe就switch_to_frame('xxx')如果是tab就是switch_to_windwow('')

4. iframe取消边框

  frameborder="0" 是边框 scrolling="no"这是滚动条

5. 怎么去掉iframe的边框

显示框架。点击查看\可视化助理,勾选框架边框, 可以显示出框架。

选中框架。将鼠标放在在框架上,当鼠标变为双箭头,单击即可选中框架。

更改属性。选中框架后,在窗口下方就出现了属性面板,可以通过更改下面的属性值来更改框架。主要有是否显示边框、边框的颜色、边框宽度、

设置滚动条。当右框架的内容过多时则需要用到滚动条来显示所有内容。点击窗口\框架,在右侧窗口就显示了框架,点击mainFrame,在打开的属性面板中,设置滚动为自动,这样就设置好了。

5

点击F12预览

6. 合同边框怎么取消

打开word文档,选中消除边框的区域,鼠标右击-“边框和底纹”,选择“边框”选项卡,其中有个“线形”和“宽度”的选项,这里默认的是“全部”,将其修改为“无”。点击“确定”即可。

7. 段落边框怎么删除

1、首先打开需要编辑的word文档,进入到编辑页面中。

2、然后鼠标左键框选中需要去掉的打勾方框。

3、然后按下键盘上的“delete”删除键进行删除。

4、然后打勾方框就可以去掉了。

8. 边框如何删除

1、打开excel表格,选中需要删除框线的单元格,点击右键选择“设置单元格格式”

2、打开设置单元格格式,点击“边框”,根据自己需要设置边框线,然后点击确定。

angular-使用iframe做独立页(iframe传值到angular和iframe里请求后台数据)

angular-使用iframe做独立页(iframe传值到angular和iframe里请求后台数据)

这个方法使用过两次。一次是在项目中嵌入一个表达式生成器。因为用别人做好的网页变成组件很难,而且里面用了jq,与angular思想相反不能用。另一次是因为想要单独引用样式。而innerHTML使用的样式放在组件css里不生效。放在assets里又影响全局样式。所以使用iframe。

第一种是在iframe页中获取我需要的值传回angular页。另一种是将后台请求参数传向iframe页。在iframe引用的页中请求并返回后台数据用innerHTML展示。

两种都先链接到iframe并传参。首先iframe引用的网页要放在assets资源文件夹里。才能够通过路径访问。首先把要引用网站的html,css放在资源文件夹里。

其次,在angular组件中用路径链接到网页。并根据需要传参数。angular中默认这路径是不安全的。我们需要DomSanitizer告诉它这是个安全路径。如果没使用会报一个提示不安全路径错吧。现在错误我懒得重现。注意的是用innerHTML引用样式时也用类似的方法。直接截图方法。

ts文件方法

分享图片

HTML里的 写法:

分享图片

这样链接已经完成了。链接的页要接受参数是怎么做呢,直接上代码,粘贴这串代码就可以获取传过来的所有参数,拿到对应参数格式是Request[‘参数名‘]

function request(url) {
var url = location.search;
var theRequest = new Object();
if (url.indexOf("?") != -1) {
var str = url.substr(1);
strs = str.split("&");
for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
}
}
return theRequest;
}

var Request = new Object();
Request = request();
alert(Request[‘url‘],Request[‘token‘],Request[‘queuename‘]); //拿到对应的参数Request[‘参数名‘](这里和上面的传参是两个页。不对应)
 
 第一种:从iframe页里传数据到angular页。

分享图片

 
 

分享图片

 第二种:

拿到参数后请求后台数据,并使angular里的父容器自适应iframe里网页长度的方法是

分享图片

css iframe 边框去掉

css iframe 边框去掉

【IE6 以下】
iframe 边框通过 css 设定在 FF 下正常在 ie 下却还存在边框,通过在 iframe 标签内部设置属性 frameborder="no" border="0" 可以去掉讨厌的 iframe 边框。
<iframe src="url“ id="iframe" width="0" height="0" frameborder="no" border="0"></iframe>

【IE7IE8 下】
遇到一个郁闷的问题,ie8,ie7 iframe 的边框无法去除,试过用脚本和样式添加 frameBorder,border 等属性都无法去除。
iframe append 到页面之前设置是有效的, append 之后就没有方法修改了。如下:


代码如下: 

<iframe id="b" frameBorder="0"></iframe>  // frameBorder="0" 去掉iframe自带边框
<iframe id="b"></iframe>
<script type="text/javascript"> 
     var ifr = document.createElement(''iframe''); 
     ifr.setAttribute(''frameBorder'', 0); // 用我没有border 
    document.body.appendChild(ifr); 
    //ifr.setAttribute(''frameBorder'', 0); //用我有border 
    ifr.style.cssText = ''border: 0 none;''; 
</script>
<script type="text/javascript"> 
     var div = document.createElement(''div''); 
     document.body.appendChild(div); 
     div.innerHTML = ''<iframe id="a"></iframe>''; //用我有border 
     //div.innerHTML = ''<iframe id="a" frameBorder="0"></iframe>'';      // 用我没有border 
     var ifr = document.getElementById(''a''); 
     ifr.setAttribute(''frameBorder'', 0); 
     ifr.style.cssText = ''border: 0 none;''; 
</script>
# 原生 JS 去除边框
<script type="text/javascript"> var ifr = document.getElementById(''b''); ifr.setAttribute(''frameBorder'', 0); ifr.style.cssText = ''border: 0 none;''; </script>

 

flex 嵌入 iframe 点iframe 外面的区域 iframe会消失 解决方法

flex 嵌入 iframe 点iframe 外面的区域 iframe会消失 解决方法

flex 嵌入 iframe 点iframe 外面的区域 iframe会消失。。 解决办法

http://hi.baidu.com/qiyangyang2009/blog/item/ebc9731d72b2a98587d6b685.html

RIA知识库 
flex 
RIA 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
    <!-- 
    Smart developers always View Source. 
    
    This application was built using Adobe Flex,an open source framework
    for building rich Internet applications that get delivered via the
    Flash Player or to desktops via Adobe AIR. 
    
    Learn more about Flex at http://flex.org 
    // -->
    <head>
        <title></title>         
        <Meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <!-- Include CSS to eliminate any default margins/padding and set the height of the html element and 
       the body element to 100%,because Firefox,or any Gecko based browser,interprets percentage as 
    the percentage of the height of its parent container,which has to be set explicitly. Initially, 
    don't display flashContent div so it won't show if JavaScript disabled.
   -->
        <style type="text/css" media="screen"> 
    html,body { height:100%; }
    body { margin:0; padding:0; overflow:auto; text-align:center; 
          background-color: #ffffff; }   
    #flashContent { display:none; }
        </style>
  
   <!-- Enable browser History by replacing usebrowserHistory tokens with two hyphens -->
        <!-- BEGIN browser History required section -->
        <link rel="stylesheet" type="text/css" href="history/history.css" />
        <script type="text/javascript" src="history/history.js"></script>
        <!-- END browser History required section --> 
      
        <script type="text/javascript" src="swfobject.js"></script>
        <script type="text/javascript">
            <!-- For version detection,set to min. required Flash Player version,or 0 (or 0.0.0),for no version detection. --> 
            var swfVersionStr = "10.0.0";
            <!-- To use express install,set to playerProductInstall.swf,otherwise the empty string. -->
            var xiSwfUrlStr = "playerProductInstall.swf";
            var flashvars = {};
            var params = {};

            / /在嵌入flex的html页面中加入这个,

           //object里有个   wmode的属性,你把他设为透明就行了。

            params.wmode="transparent";

 params.quality = "high";             params.bgcolor = "#ffffff";             params.allowscriptaccess = "sameDomain";             params.allowfullscreen = "true";             var attributes = {};             attributes.id = "timeline";             attributes.name = "timeline";             attributes.align = "middle";             swfobject.embedSWF(                 "timeline.swf","flashContent",                  "100%","100%",                  swfVersionStr,xiSwfUrlStr,                  flashvars,params,attributes);     <!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->     swfobject.createCSS("#flashContent","display:block;text-align:left;");         </script>     </head>     <body>         <!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough      JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show     when JavaScript is disabled.    -->         <div id="flashContent">         <p>          To view this page ensure that Adobe Flash Player version       10.0.0 or greater is installed.      </p>     <script type="text/javascript">       var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");       document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"           + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );      </script>          </div>             <noscript>             <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="timeline">                 <param name="movie" value="timeline.swf" />                 <param name="quality" value="high" />                 <param name="bgcolor" value="#ffffff" />                 <param name="allowScriptAccess" value="sameDomain" />                 <param name="allowFullScreen" value="true" />                 <!--[if !IE]>-->                 <object type="application/x-shockwave-flash" data="timeline.swf" width="100%" height="100%">                     <param name="quality" value="high" />                     <param name="bgcolor" value="#ffffff" />                     <param name="allowScriptAccess" value="sameDomain" />                     <param name="allowFullScreen" value="true" />                 <!--<![endif]-->                 <!--[if gte IE 6]>-->                 <p>                     Either scripts and active content are not permitted to run or Adobe Flash Player version                    10.0.0 or greater is not installed.                 </p>                 <!--<![endif]-->                     <a href="http://www.adobe.com/go/getflashplayer">                         <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />                     </a>                 <!--[if !IE]>-->                 </object>                 <!--<![endif]-->             </object>      </noscript>      </body> </html>

Flex嵌套Iframe,点击除Iframe的其他地方后,Iframe内容消失的问题

Flex嵌套Iframe,点击除Iframe的其他地方后,Iframe内容消失的问题

           今天遇到一个很让人闹心的问题,就是我的Flex中为了嵌套一个jsp,所以在flex中嵌套一个包含JSP页面的Iframe。问题出现了,当我点击除了Iframe的其他地方的时候,Iframe中的内容全部消失了。刚开始我还困惑到底是怎么回事,后来才发现这个问题是完全可以解决的。解决的方法如下:

          在index.template.html中更改一个属性,index.template.html在你的flex工程下,目录为 :工程名\html-template\index.template.html。打开后,查看window的属性"wmode",看到后,将其值更改为"transparent"。一般一共会有三个地方。更改完后保存,重新编译,启动工程,成功!

         具体的代码如下:(注意红色字体)

<!-- saved from url=(0014)about:internet -->
<html lang="en">

<!--
Smart developers always View Source.

This application was built using Adobe Flex,an open source framework
for building rich Internet applications that get delivered via the
Flash Player or to desktops via Adobe AIR.

Learn more about Flex at http://flex.org
// -->

<head>
<Meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!--  BEGIN browser History required section -->
<link rel="stylesheet" type="text/css" href="history/history.css" />
<!--  END browser History required section -->

<title>${title}</title>
<script src="AC_OETags.js" language="javascript"></script>

<!--  BEGIN browser History required section -->
<script src="history/history.js" language="javascript"></script>
<!--  END browser History required section -->

<style>
body { margin: 0px; overflow:hidden }
</style>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = ${version_major};
// Minor version of Flash required
var requiredMinorVersion = ${version_minor};
// Minor version of Flash required
var requiredRevision = ${version_revision};
// -----------------------------------------------------------------------------
// -->
</script>
<script src="../scripts/hello.js" language="javascript"></script>
</head>

<body scroll="no">
<script language="JavaScript" type="text/javascript">
<!--
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6,65);

// Version check based upon the values defined in globals
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion,requiredMinorVersion,requiredRevision);

if ( hasProductInstall && !hasRequestedVersion ) {
 // DO NOT MODIFY THE FOLLOWING FOUR LInes
 // Location visited after installation is complete if installation is required
 var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
 var MMredirectURL = window.location;
    document.title = document.title.slice(0,47) + " - Flash Player Installation";
    var MMdoctitle = document.title;

 AC_FL_runcontent(
  "src","playerProductInstall",
  "FlashVars","MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
  "width","${width}",
  "height","${height}",
  "align","middle",
  "id","${application}",
  "quality","high",
  "bgcolor","${bgcolor}",
  "name",
  "allowScriptAccess","sameDomain",
  "type","application/x-shockwave-flash",
  "wmode","transparent", 
  "pluginspage","http://www.adobe.com/go/getflashplayer"
 );
} else if (hasRequestedVersion) {
 // if we've detected an acceptable version   transparent
 // embed the Flash Content SWF when all tests are passed
 AC_FL_runcontent(
   "src","${swf}",
   "width",
   "height",
   "align",
   "id",
   "quality",
   "bgcolor",
   "name",
   "allowScriptAccess",
   "type",
   "wmode", 
   "pluginspage","http://www.adobe.com/go/getflashplayer"
 );
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = 'Alternate HTML content should be placed here. '
   + 'This content requires the Adobe Flash Player. '
    + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
    document.write(alternateContent);  // insert non-flash content
  }
// -->
</script>
<noscript>
   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
   id="${application}" width="${width}" height="${height}"
   codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
   <param name="movie" value="${swf}.swf" />
   <param name="quality" value="high" />
   <param name="bgcolor" value="${bgcolor}" />
   <param name="allowScriptAccess" value="sameDomain" />
   <embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
    width="${width}" height="${height}" name="${application}" align="middle"
    play="true"
    loop="false"
    quality="high"
    allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash"
    pluginspage="http://www.adobe.com/go/getflashplayer" wmode="transparent">    </embed>  </object> </noscript> </body> </html>

我们今天的关于iframe清理seo(iframe边框怎么去掉)如何去除iframe的边框的分享已经告一段落,感谢您的关注,如果您想了解更多关于angular-使用iframe做独立页(iframe传值到angular和iframe里请求后台数据)、css iframe 边框去掉、flex 嵌入 iframe 点iframe 外面的区域 iframe会消失 解决方法、Flex嵌套Iframe,点击除Iframe的其他地方后,Iframe内容消失的问题的相关信息,请在本站查询。

本文标签: