【问题标题】:Jekyll Now blog text alignJekyll Now 博客文本对齐
【发布时间】:2016-05-18 05:49:41
【问题描述】:

如何以最简单的方式使 Jekyll Now 中的文本对齐?我试过{: .text-justify},但没有用。

【问题讨论】:

    标签: css jekyll text-alignment kramdown


    【解决方案1】:

    你已经成功了。

    您正在使用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

    【讨论】:

      猜你喜欢
      • 2023-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多