0
如何以最簡單的方式在Jekyll Now
中對文字進行對齊?我試過{: .text-justify}
,但沒有工作。Jekyll現在博客文字對齊
如何以最簡單的方式在Jekyll Now
中對文字進行對齊?我試過{: .text-justify}
,但沒有工作。Jekyll現在博客文字對齊
那麼你是一半的方式。
您正在使用Inline Attribute Lists (IAL)爲了向html元素添加屬性。
Aenean massa. Cum sociis natoque penatibus ...
{: .my-class}
這將在段落中添加一個.my-class
類。現在
<p class="my-class">Aenean massa. Cum sociis natoque penatibus …</p>
,你只需要添加相應的規則cascading style sheet這個類。
.my-class{
text-align: justify;
}
重要提示:一個可訪問性最佳做法是avoid justified text。