我有为客户编写的代码空间。它可以完美地在测试页上运行,但是将其放在他的实际页面上却无法正常工作。代码在这里...

http://jsfiddle.net/ugngp7ft/1/

.hidden_textfield {

    width: 100%;
    border: none;
    outline: none;
    background-color: transparent;
    font-family: inherit;
    font-size: inherit;

}


我发现问题是无法设置文本框的“宽度”属性。有没有一种方法可以使用该属性而不必经历他已经弄清楚为什么不能设置它的CSS山脉呢?什至会导致width属性对文本框无效?谢谢。

最佳答案

完全退出Chrome并重新打开后,它就可以在主页上运行了。去搞清楚。感谢您的时间。

关于css - 什么会影响width属性的可用性?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/29458203/

10-12 13:02
查看更多