From a50ea7ae4d12f2a604ad87e72218450bd3259f67 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Tue, 7 Apr 2026 18:10:55 +0800 Subject: [PATCH] css: support 'background-color' & 'background-image' --- examples/css.html | 1 + examples/img.png | Bin 319897 -> 128544 bytes examples/style.css | 7 ++ html/abc_css.c | 137 +++++++++++++++++++++--------- html/abc_html.c | 58 +++++++++---- html/abc_io.h | 3 +- html/abc_io_util.c | 22 ++++- html/abc_obj.c | 4 +- html/abc_obj.h | 4 + ui/Makefile | 3 + ui/abc_layout.c | 8 +- ui/abc_render.c | 13 ++- ui/abc_render_bg_color.c | 101 ++++++++++++++++++++++ ui/abc_render_bg_image.c | 175 +++++++++++++++++++++++++++++++++++++++ ui/abc_render_body.c | 17 +++- ui/abc_render_h1.c | 75 ++++++++++------- ui/abc_render_img.c | 16 +--- 17 files changed, 536 insertions(+), 108 deletions(-) create mode 100644 ui/abc_render_bg_color.c create mode 100644 ui/abc_render_bg_image.c diff --git a/examples/css.html b/examples/css.html index 9b738ff..2eb455e 100644 --- a/examples/css.html +++ b/examples/css.html @@ -8,6 +8,7 @@
Hello World!
è¿ä¸ªæ®µè½éç¨CSSæ ·å¼åã
+è¿ä¸ªæ®µè½éç¨CSSæ ·å¼åã