2017-02-13 83 views
0

当我设置字体尺寸:200%差异190%和200%

enter image description here

当我设置字体尺寸:190%:

enter image description here

我测试的Firefox和我找到了。

我不知道为什么 “FONT-SIZE:200%”,使得这些差异......

body { 
 
    font-size: 190%; 
 
    font-family: sans-serif; 
 
} 
 
input { 
 
    width: 300px; 
 
    padding: 5px 5px 12px 5px; 
 
    font-size: 25px; 
 
    border-radius: 5px; 
 
    border: 1px gray solid; 
 
} 
 
#wrapper { 
 
    margin: 0, auto; 
 
    width: 1000px; 
 
} 
 
lable { 
 
    width: 100px; 
 
    float: left; 
 
} 
 
.element-container { 
 
    margin-bottom: 5px; 
 
}
<div id="wrapper"> 
 
    <div class="element-container"> 
 
    <lable for="email">Email</lable> 
 
    <input type="text" name="email" id="email" placeholder="input the email here"> 
 
    </div> 
 
    <div class="element-container"> 
 
    <lable for="phone">Telephone</lable> 
 
    <input type="text" name="phone" id="phone" placeholder="input the phone number here"> 
 
    </div> 
 
</div>

+1

你应该在问题本身,在文本中说明它们之间的区别是什么以及它的问题是什么。 –

回答

0

你可以给它5 padding-right一%,这将移动远离文字框。

lable { 
width: 100px; 
float: left; 
padding-right:5%; 
}