2012-09-09 37 views
0

这里我的iFrame,但文字的代码生成文本没有在框架实际显示通过代码,我不能在iFrame中

.iframe { 
    font-family: "Courier New", Courier, monospace; 
    font-size: 14px; 
    font-style: normal; 
    line-height: normal; 
    font-weight: lighter; 
    background-attachment: inherit; 
    background-repeat: repeat; 
    background-position: top; 
    text-align: left; 
    white-space: normal; 
    float: inherit right; 
    widows:inherit; 
    volume:silent; 
    border-left-style: dashed; 
    list-style-type: circle; 
    cursor: default; 
    filter: Glow(Color=#345, Strength=2); 
} 

在html标记的帧代码

<iframe class="iframe" align="middle" height="500" width="1000"> 
     <font color="#00FF33" style="animation:ease-in-out" face="Arial, Helvetica, sans- serif">hello guys i am dhaiwat....</font> 
    </iframe> 

如何获得里面的文字...

+1

thnks为编辑@ties – maverick

回答

0

内容由url属性设置,如下所示:url="http://example.com"。实际的页面(在本例中为examplel.com)被加载到iframe框中。对于设置常规内容,您应该使用<div>,<span>或其他语义。

一个很好的参考是w3schools(link1,link2),你可以找到很多关于html标签的信息。

PS:在<font>标签被弃用,因此,你不应该再使用它

0

您错过了一个标记。你也试图让框架内的页面具体。正在加载的页面必须使用自己的依赖项来指定