简体   繁体   English

更正用于移动视图的自定义桌面CSS

[英]Correcting custom desktop CSS for mobile view

I have used this custom CSS to format the last three letters of the single word on the second line of my banner text on my site as bold. 我已经使用此自定义CSS将网站上横幅文字第二行上单个单词的最后三个字母设置为粗体。 However, the mobile view of the last three letters displays it as a subscript. 但是,最后三个字母的移动视图将其显示为下标。 I would like all of the second line in the mobile view to be the same size as the last three letters. 我希望移动视图中的所有第二行都与后三个字母相同。 The website is chad-ruffin.squarespace.com. 该网站是chad-ruffin.squarespace.com。 Custom CSS: 自定义CSS:

.desc-wrapper p:nth-of-type(2) 
{ display:inline-flex; 
font-family: brandon-grotesque; 
font-weight: 400; 
font-style: normal; 
font-size: 68px; 
text-transform: uppercase; 
line-height: 1em; }

It's not a subscript. 不是下标。 It's just that the font-size: 68px is larger than the rest on mobile. 只是font-size: 68px比其他移动设备大。 Scale it down on mobile to maybe 36px and it should fit right. 在移动设备上将其缩小至36px,应该合适。 You might have to change the line-height too. 您可能还必须更改行高。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM