katana parserCSS 解析器
katana 是一個純 C 語言實(shí)現(xiàn)的 CSS 解析器。
示例代碼:
#include "katana.h"
int main() {
const char* css = "selector { property: value }";
KatanaOutput* output = katana_parse(css, strlen(css), KatanaParserModeStylesheet);
// Do stuff with output, eg. print the input style
katana_dump_output(output);
katana_destroy_output(output);
}評論
圖片
表情
