sIFR - 无法“文本对齐” 我的标签 - 沮丧
问候! 今天开始尝试 sIFR3,我爱上了! 很好!
然而,在我的一生中,我无法让看似如此微不足道的事情发生:居中对齐我的标签:
在我的 sifr-config.js 中,我有:
sIFR.replace(serif, { 选择器:'h2',css:'.sIFR-root { textalign:center; }' });
..但没有喜悦。
任何反馈和指导将不胜感激!
谢谢。
Greetings! Started experimenting with sIFR3 today and am in love! So great!
For the life of me, however, I can't get what seems to be something so trivial to happen: Center align my tag:
In my sifr-config.js, I have:
sIFR.replace(serif, {
selector: 'h2', css: '.sIFR-root { textalign: center; }'
});
.. and yet no joy.
Any feedback and direction would most appreciated!
Thank you.
这可能是因为有效的 CSS 属性名称是
text-align
,而不是textalign
。That'd probably be because the valid CSS property name is
text-align
, nottextalign
.