2010-12-12 36 views
1

的IFRAME代碼是這樣的,因爲我使用prettyPhoto如何設計一個iframe的樣式?

<a href="stories/story1txt.php?iframe=true&width=400&height=200" rel="prettyPhoto"> 
<img src="images/story1.jpg"/></a> 

和story1txt.php文件看起來像這樣

<p>Text goes here...</p> 

我如何樣式的PHP文件使字體Arial窄和17px?我使用鏈接到一個CSS文件? 謝謝

回答

3

您不能從包含它的頁面設計iframe的內容。您需要在「內部/包含」頁面上獲取樣式信息(在您的案例中,story1txt.php)。


編輯:如果你問的具體CSS,這將是這樣的:

body { 
    font-size: 17px; 
    font-family: "Arial Narrow", sans-serif; 
}