input与select在不同浏览器上的宽度显示不同及ie背景图显示问题 -凯发k8官方网
                                                            凯发k8官方网
收集整理的这篇文章主要介绍了
                                input与select在不同浏览器上的宽度显示不同及ie背景图显示问题
小编觉得挺不错的,现在分享给大家,帮大家做个参考.                        
                                select的css width样式,包含边框和内边距,即:真实的width=css width。
而input的css width样式,则不包含边框和内间距,真实的width=css width border padding。
解决的方法:
设置select的css width=input 的css width border padding
例:
input[type="text"]{width: 196px;}
场馆名称:
 学校名称:
ie下 背景图无法显示问题解决方法
由原来的写法:.header h1{line-height: 60px;padding-left:32px;background: no-repeat left -6px top 8px;}
改成:.header h1{line-height: 60px;padding-left:32px;background-image: ;background-repeat:no-repeat;background-position: -5px center;vertical-align: middle;}
转载于:https://www.cnblogs.com/yiran2016/p/6409876.html
总结
以上是凯发k8官方网为你收集整理的input与select在不同浏览器上的宽度显示不同及ie背景图显示问题的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇:
 - 下一篇: