diff --git a/src/styles/global.less b/src/styles/global.less index e93b269..4bbb1b2 100644 --- a/src/styles/global.less +++ b/src/styles/global.less @@ -243,7 +243,16 @@ html, body { /* 防止长英文单词溢出 */ word-wrap: break-word; } +.text-1-line-ellipsis { + /* 核心属性:单行省略 */ + display: block; /* 或者 inline-block,根据布局需求调整 */ + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; /* 强制文本在一行显示 */ + /* 兼容性补充(可选,现代浏览器一般已支持基础单行省略) */ + word-break: break-word; +} // 响应式工具类 @media (max-width: @mobile-breakpoint) { .mobile-hide { display: none !important; } diff --git a/src/views/Home/sections/CoreValue.vue b/src/views/Home/sections/CoreValue.vue index fe5d8ae..9b64805 100644 --- a/src/views/Home/sections/CoreValue.vue +++ b/src/views/Home/sections/CoreValue.vue @@ -3,47 +3,298 @@

核心价值

友福同享AI健康解决方案应用场景

- - 核心价值图示 + +
+ +
+
+
+ +
+
{{ item.title }}
+
+ {{ item.description }} +
+
+
+