2012-09-09 39 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

您錯過了一個標記。你也試圖讓框架內的頁面具體。正在加載的頁面必須使用自己的依賴項來指定