[雜談] IE 設定字距無法換行的解法


2007/02/16 17:17 712Views


在調整了 Blog 的 CSS 加入了 letter-spacing 調整字距後, 在 Firefox 下顯示正常, 但剛剛用 IE 瀏覽時卻發現若有連續兩個 <br> 的換行出現時, 會有其中一個 <br> 被吃掉的問題。

將解決方法貼出來, 供有需要的人參考, 如下:

.entry .postItem {
  letter-spacing:2px;
  line-height:1.8em;
}

.entry .postItem br {
  letter-spacing:0em;
}

也就是再多一組強制將 <br>letter-spacing 設為 0 即可。IE 在 CSS 上總是有許多奇妙的問題…

Entry Filed under: 部落格, 部落格隨便聊

post to del.icio.us  post to MyShare  post to HEMiDEMi  post to funP

1 Comment Add your own

  • 1. 風痕影  |  2007/02/17 08:46 | 回覆

    我也是用這種方法來解的 XD

    Using Mozilla Firefox Mozilla Firefox 2.0.0.1 on Windows Windows XP

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Donate Me

Related Posts

Recent Posts

Recent Comments