我有一個小間隙的問題。我想要有小於1個像素的間距。這裏是我的html字母間距小於一個像素
<div id="head">
<h1>Mira's</h1>
<br>
<h2>Koding place</h2>
</div>
這裏是CSS
@font-face {
font-family: Museo;
src: url("fonts/Museo300-Regular.otf") format("opentype");
}
body {
background-color: black;
}
h1 {
text-align: center;
margin: 0 auto;
font-family:'Museo', 'Lucida Console', Courier;
font-size: 7em;
text-transform: uppercase;
color: #fff;
text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #029408, 0 0 70px #029408, 0 0 80px #029408, 0 0 100px #029408, 0 0 150px #029408;
}
h2 {
font-size: 1.65em;
text-align: center;
font-family:'Museo', 'Lucida Console', Courier;
color: #fff;
margin-top: -1.65em;
margin-left: 0.13em;
letter-spacing: 0.5px;
}
問題是,它不是字母間距不到一px
,沒有任何破解,使其小於一個像素?
這裏的jsfiddle它http://jsfiddle.net/3np3y/
而且不介意在CSS有些事情是px
,有些是em
。我將盡快將所有內容重新輸入em
。
也許這可以幫助 - http://stackoverflow.com/questions/7811225/is-there-a-way-to-make-css-letter-spacing-0-5-px。 – vujke 2013-03-23 19:49:29