2016-08-02 140 views
0

我是初學者,正在爲班級作業工作,我在嘗試證明我的某個網站中的文本時遇到了一些困難。初學者:對齊文本

我真的很感激,如果有人可以幫助我這個!

HTML:

<div class="about__entry sm-two-thirds"> 
    <p>We believe in the power of authentic and genuine music, not manufactured artists. We believe in the freedom of music, expression, and creativity. We aim to give artists tools that will empower them to make the music they love and give them the ability to take their careers into their own hands.</p> 
</div><!-- end .about__entry --> 

CSS

.About__entry { 
    text-align: justify; 
    text-justify: inter-word; 
    text-align-last:center; 
} 

回答

4

CSS是大小寫敏感的例如爲類名稱。

About__entry != about__entry

+0

是的,剛纔看到!謝謝,謝謝! :) –

0

這裏有一個固定的例子:https://jsfiddle.net/v6L94v27/

你只需要爲類名的大小寫相匹配(類名有一個大寫字母A)

<div class="About__entry sm-two-thirds"> 
     <p>We believe in the power of authentic and genuine music, not manufactured artists. We believe in the freedom of music, expression, and creativity. We aim to give artists tools that will empower them to make the music they love and give them the ability to take their careers into their own hands.</p> 
    </div><!-- end .about__entry --> 
+0

感謝您的快速響應!對此,我真的非常感激! –