duanqiao1926 2014-02-27 18:41
浏览 45
已采纳

Css,字体大小,WP二十二主题文字字母(i)小写字母变为带有谷歌字体的大写字母

How does the php echo or print effects the letter lowercase to become uppercase? or is it a css issue?

for example:

echo "Against";
// Outputs AgaInst for me

in the css there is one parent class that says: text-transform:uppercase; but the specific title overwrites that css with text-transform:capitalize; if i just write it in plain html it works fine but when i echo it with php it does turn i to I!?

Please note the AgaInst and TIed in table headers. enter image description here

Found the solution as @Mathias Pointed out the font size. Problem was the font size, it happens for for sizes smaller than font-size:12px;

  • 写回答

2条回答 默认 最新

  • duanaoshu1989 2014-02-27 18:56
    关注

    It seems to be the rendering of the font in that small size.

    Try increasing the font size or use a different font. When I try Open Sans in 10px or smaller in Chrome on OSX I get the same effect. Different OS and different browsers might render the text differently.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?