默认文本框边框样式和宽度 [英] Default textbox border-style and width
本文介绍了默认文本框边框样式和宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
IE7和FFox似乎默认渲染文本框的方式略有不同。
这似乎是通过设置边框样式和边框宽度css属性来修复的。 / p>
奇怪的是,在所有的选项vstudios intellisense给我,没有一个匹配?
我发现的最近的是
border-width:1px;
border-style:inset;
编辑:尝试设置文本框的样式,它们在各种浏览器中显示为不同的呈现。
解决方案
根据Firebug,Firefox中文本框的默认样式是
border:2px inset#EBE9ED;
IE7 and FFox seem to render textboxes very slightly differently by default.
This seems to be fixed by setting their border-style and border-width css properties.
The odd thing is, it seems that out of all the options vstudios intellisense gives me, none of them match?
The closest I've found is
border-width:1px;
border-style:inset;
Edit: Trying to set the style for a textbox, they all appear to render differently in various browsers.
解决方案
According to Firebug, the default style for a textbox in Firefox is
border: 2px inset #EBE9ED;
这篇关于默认文本框边框样式和宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文