比如下一段css的定义,怎么给IFrame,多谢了!
<style type="text/css">
clsCursor {  cursor: hand}
input {  color: #ff0000; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px;}
</style>

解决方案 »

  1.   

    <iframe name=f1 class=你的class名字 width=100 height=100src=.....></iframe>另:
    1.
    clsCursor {  cursor: hand}
    应写为:
    .clsCursor {  cursor: hand}2.
    input {  color: #ff0000; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px;}
    会把所有<input...>的标记设为input样式。
    如果你想在其它地方使用input样式
    你可以改一个名字,前面要有一个点(.),然后把它设为class="你取的名字就行了"
      

  2.   


    <style type="text/css">
    .你的class名字 clsCursor {  cursor: hand}
    .你的class名字 input {  color: #ff0000; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px;}
    </style> 
    <iframe name=f1 class=你的class名字 width=100 height=100 src=.....>
    </iframe>OK,OVER.
      

  3.   

    看了rainbow2k(rainbow)的提问,发现各位大侠都有理解错误,不知道是不是?我想rainbow2k(rainbow)肯定知道一个iframe如果要使用css的class不用使用input{...},那么他的意思很明显是如何将这两个css规则导入到iframe中的窗口中,使得iframe中的input能够使用这个css规则,不知然否?我目前也在问这个问题:如何将一个外部css加到一个空白的iframe中(所谓空白是指只写了一个iframe而没有设置其src,这时此iframe中会有一个默认页面about:blank,有默认的一个document对象),主要未解决的是如何设定<link>的href(相对路径),各位有兴趣可以讨论一下!