diff --git a/demoHtml/flex/css/index.css b/demoHtml/flex/css/index.css index 4430db5..95cb636 100644 --- a/demoHtml/flex/css/index.css +++ b/demoHtml/flex/css/index.css @@ -72,7 +72,7 @@ html { .component-item { width: calc(50% - 5px); - height: 80px; + height: 120px; border-radius: 8px; cursor: pointer; display: flex; @@ -109,6 +109,11 @@ html { .grid-stack-item span { font-size: 14px; } +.image-container { + width: 100%; + height: 100%; + object-fit: cover; +} .action-btn { position: relative; width: 100%; diff --git a/demoHtml/flex/image/img.png b/demoHtml/flex/image/img.png new file mode 100644 index 0000000..d8025c1 Binary files /dev/null and b/demoHtml/flex/image/img.png differ diff --git a/demoHtml/flex/image/movie.png b/demoHtml/flex/image/movie.png new file mode 100644 index 0000000..bb9d2c8 Binary files /dev/null and b/demoHtml/flex/image/movie.png differ diff --git a/demoHtml/flex/index.html b/demoHtml/flex/index.html index 65a1105..7344689 100644 --- a/demoHtml/flex/index.html +++ b/demoHtml/flex/index.html @@ -38,7 +38,12 @@
-
图片
+
+ +
文字
@@ -97,6 +102,7 @@