如何自定义尾风排版阻滞
为了添加打开和关闭报价,尾风的排版在和之后添加
pseudo元素之后添加:
<blockquote>
:after
<p>Lorem ipsum.</p>
:before
</blockquote>
我想自定义样式删除闭幕报价以匹配此内容模式:
是否可以从tailwind.config.js自定义它,还是我应该用CSS和<代码>!重要?
Tailwind typography, In order to add opening and closing quotes, add an after
and before
pseudo elements to blockquotes:
<blockquote>
:after
<p>Lorem ipsum.</p>
:before
</blockquote>
I want to customize the style removing just the closing quotes to match this pattern:
Is it possible customize it from tailwind.config.js or should I override styles with CSS and !important
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如本期所述: https://github.com/tailwindlabs/tailwindcss-typography/issues/66#issuecomment-756834635
您可以将以下配置添加到
tailwind.config.js
:并将类
散文Quoteless
添加到您的散文元素删除所有报价。As described in this issue: https://github.com/tailwindlabs/tailwindcss-typography/issues/66#issuecomment-756834635
You can add following configuration to your
tailwind.config.js
:and add the class
prose-quoteless
to your prose element afterwards to remove all quotes.