typora块元素

by Typora.net
如我所写,Typora将尝试将所有元素呈现为其他输出,例如, 段落,表格, 一级标题等,因此您可以通过编写以下样式来更改大多数排版: p {...} h1 {...} table {...} table th td {...} table tr:nth-child(2n) td {...} ... 您可以添加#write作为祖先选择器,以使样式仅适用于书写区域,而不会影响控件组件(例如,某些对话框中的标题也可能被h4标签包裹)。 /*this will only aplly to h4 in dialogs popped up by typora (just an example)*/ .dialog h4 {...} /*this will only apply to h4 inside writing area, which is generated after user input "#### " */ #write h4 {...} 同样,所有块元素都有一个mdtype属性。例如,您还可以通过选择器选择标题[mdtype="heading"]。可能类型包括paragraph,heading,blockquote,fences,hr,def_link,def_footnote,table,meta_block,math_block,list,toc,list_item,table_row,table_cell,line。但是在大多数情况下,标签选择器就足够了。
Tags: , ,