我想问
如何删除大写字母第一个单词
我尝试过这样:
text-transform: none !important;
text-decoration : none !important;
无效
我正在使用Blogspot主题主导珊瑚主题:
这是我的示例网站:https://blogkubagus123.blogspot.com/2020/02/testing-post.html
类似此屏幕截图的示例:
我想更改普通文本(如果我创建了粗体,则显示为粗体,如果我创建了h1,则显示为文本,h1等)
如何删除先生?
希望对您有帮助。
body.item-view .Blog .post-body::first-letter{font-size:16px;}
您需要选择元素文本中的第一个字母,然后应用font-size属性。
喜欢这个
.element::first-letter { font-size: inherit }
检查您的页面后发现body.item-view .Blog .post-body::first-letter
的样式如下>
float:left; font-size:80px; font-weight:600; line-height:1; margin-right:16px;
因此,您需要取消:
float:none; font-size:14px; font-weight:inherit; line-height:1; margin-right:0;
用于选择器
body.item-view .Blog .post-body::first-letter
的所有参数(除非使用!important
,否则具体内容不会覆盖模板样式)