iT邦幫忙

0

html css 文字的內容如何左右對齊

各位大大好:

我在div 的css加入 text-align:justify;
我用firefox跟chrome文字內容是可以對齊的,但是ie跟edge是文字內容左右是無法對齊想請問還有甚麼方法?
因為我需要將html跟css code貼到電子郵件寄送,也是會發現文字內容無法對齊的狀況
謝謝!
https://www.w3schools.com/code/tryit.asp?filename=FPSHL4699LI0

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

3
暐翰
iT邦大師 1 級 ‧ 2018-03-28 14:27:06
最佳解答

多加一個text-justify: distribute;就可以

修改後跑在edge效果圖:

原理:

Strange behaviour when using text-align justify/text-justify and right

CSS3 text-justify 属性

mayyola iT邦研究生 2 級 ‧ 2018-03-28 14:37:56 檢舉

謝謝你!!~/images/emoticon/emoticon41.gif

我要發表回答

立即登入回答