/

本页目录

元素样式属性

若干函数,例如 .container.heading ,共享一组通用的样式参数,用于自定义它们所生成元素的颜色、间距、边框和文本外观。

参数

参数说明可接受值默认值
foreground文本颜色。Color文档默认值
background背景颜色。Color
border边框颜色。Color若设置了 borderwidth 则为浏览器默认值,否则无
borderwidth边框粗细。Sizes若设置了 border 则为浏览器默认值,否则无
borderstyle边框类型。normaldasheddotteddouble若设置了 borderborderwidth 则为 normal,否则无
margin元素外部的空白。Sizes
padding边框与内容之间的空白。Sizes
radius圆角(及边框)半径。Sizes
alignment内容对齐。startcenterend浏览器默认值
textalignment文本对齐。startcenterendjustify若设置了 alignment 则跟随它
fontsizefontweightfontstylefontvarianttextdecorationtextcase文本变换。接受的值请参阅高级文本格式化

示例

示例 1

.container fullwidth:{yes} borderstyle:{dashed} padding:{1cm} fontsize:{medium} fontstyle:{italic} fontvariant:{smallcaps}
    This is a styled container. Fancy, isn't it?

    Quarkdown can truly give life to complex layouts with ease.

This is a styled container. Fancy, isn’t it?

Quarkdown can truly give life to complex layouts with ease.