2012-09-04 58 views
1

我创建了一个形式,它的优良的外观镀铬为什么我的联系表单在Firefox中显示不同?

但我检查到Firefox比现在表现出正确的我尝试很多次,但没有找出解决方案

任何一个修正我的形式

铬导致enter image description here

和Firefox结果表明是

enter image description here

Demo link is

+2

请附上您的HTML和CSS或链接到网页的人来评价的问题。 – Darcey

+1

欢迎来到浏览器网页开发。另外,当你显示没有代码时,我该怎么猜测 –

+4

代码在演示链接下可用... – Sirko

回答

1

您还没有输入固定的宽度/高度。检查更新demo here

http://jsfiddle.net/Sxvdh/1/

+0

不错的答案@Sowmya加一个答案..........但sandeep的也gud,因为他深深地解释了为什么它发生的错误 –

0

我个人会风格形式更多这样的(不是说你应该,只是提供一个替代)。

http://jsfiddle.net/qZfdp/2/

<form action="" method="post"> 
    <div class="field text"> 
     <label>Name *</label> 
     <input type="text" name="name" /> 
    </div> 
    ... 
    <div class="field textarea"> 
     <label>Message</label> 
     <textarea name="message"></textarea> 
    </div> 
    <button>Submit</button> 
</form> 

CSS:

form { 
    margin: 25px; 
    width: 592px; 
    border: solid 3px #c7d9e0; 
    padding: 60px; 
    box-sizing:border-box; 
    -moz-box-sizing:border-box; 
    -webkit-box-sizing:border-box; 
    box-shadow:0 0 10px 0 rgba(0,0,0,0.6); 
    -moz-box-shadow:0 0 10px 0 rgba(0,0,0,0.6); 
    -webkit-box-shadow:0 0 10px 0 rgba(0,0,0,0.6); 
    border-radius:5px; 
} 

label { 
    width: 100px; 
    display: inline-block; 
    float: left; 
} 

input, 
textarea { 
    border: 0 none; 
    background-color: transparent; 
    width: 335px; 
} 

.field { 
    margin: 0 0 10px 0; 
    padding: 10px; 
    box-shadow:0 0 0 1px rgba(255,255,255,0.75) inset; 
    border-radius:3px; 
    -moz-border-radius:3px; 
    -webkit-border-radius:3px; 
    border:solid 1px #d8d5d5; 
    background: -moz-linear-gradient(top, rgba(247,245,245,1) 28%, rgba(216,213,213,1) 100%); /* FF3.6+ */ 
    background: -webkit-linear-gradient(top, rgba(247,245,245,1) 28%,rgba(216,213,213,1) 100%); /* Chrome10+,Safari5.1+ */ 
    background: -o-linear-gradient(top, rgba(247,245,245,1) 28%,rgba(216,213,213,1) 100%); /* Opera 11.10+ */ 
    background: -ms-linear-gradient(top, rgba(247,245,245,1) 28%,rgba(216,213,213,1) 100%); /* IE10+ */ 
    background: linear-gradient(to bottom, rgba(247,245,245,1) 28%,rgba(216,213,213,1) 100%); /* W3C */ 
} 
​ 
​ 
相关问题