CSS默认支持颜色名称列表

posted @

详见 The syntax 中的 named-color

/**
*  @return Array<string[]>
*/
Array.from($(".named-color-table").children[1].children).map(tr => [
    // name
    tr.children[2].innerText,
    // hex rgb
    tr.children[3].innerText,
    // decimal
    tr.children[4].innerText
])

这里也有:color_value#Color_keywords

转载请注明出处@https://www.cnblogs.com/noah227/p/17469653.html
posted @   彼时今日  阅读(22)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示