用于span的CSS在IE9中不起作用

时间:2015-03-24 14:42:16

标签: css internet-explorer-9

在下面的代码中,我的所有CSS属性都没有应用到IE9中的span标记,但它们在Safari中运行良好。

HTML

<div class="example">
    <div class="customeExample">
        <span class ="clospan"></span>
            <input type ="text" class="name"/>
    </div>
</div>

CSS文件

.example div span{
    background: transparent url(../images/example.gif) right top no-repeat;   
    background-color: #ffff;
    cursor: pointer;
    display: inline-block;
    height: 15px;
    left: 25px;
    margin: 0; 
    outline: none;
    padding: 0; 
    position: absolute; 
    top: 0;
    width: 100px;
}

.example div input {
    background: none;
    border: 1px solid #cbcbcb!important;
    border-left: none!important;
    border-right: none!important;
    cursor: default;
    display: inline-block;
    font-size: 12px;
    height: 18px;
    left: 6px;
    margin: 0;
    outline: none;
    padding: 2px 0;
    position: absolute;
    top: 0;
}        

有人知道这个问题吗?

0 个答案:

没有答案
相关问题