利用CSS模擬iframe,可以在有限的空間或版面,放較多的內容。

 

 

[CSS]

.css_iframe {
    overflow: auto;
    width: 250px;
    height: 100px;
    padding: 10px;
    background-color: #FFFFFF;
    font-size: 15px;
    line-height: 20px;
    border: #EBEBEB solid 3px;
    color: #666666;
}

 

[html]

<div>
It is essential that the student acquires an understanding of and a lively feeling for values. He must acquire a vivid sense of the beautiful and of the morally good. Otherwise he----with his specialized knowledge----more closely resembles a well-trained dog than a harmoniously developed person.</div>

 

[Sample]

css_iframe.gif

 

 

 

 

 

創作者介紹

Panda's blog

jon6773 發表在 痞客邦 PIXNET 留言(0) 人氣()