Skip to content

Commit 1e2a19c

Browse files
committed
fix: good-item style error
1 parent 0635784 commit 1e2a19c

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div class="container">
2-
<div *ngFor="let item of dataSource" class="container-item">
3-
<div class="container-item__header">
4-
<img class="container-item__header-img" src="../../../../assets/icon/home/头像.png">
2+
<div *ngFor="let item of dataSource" class="container-item">
3+
<div class="container-item__header">
4+
<img class="container-item__header-img" src="../../../../assets/icon/home/头像.png">
5+
</div>
6+
<span class="container-item-first">{{item.name}}</span>
7+
<span class="container-item-second">{{item.roleName}}</span>
8+
<div class="container-item-intro" style="-webkit-box-orient: vertical;">{{item.introduce}}</div>
59
</div>
6-
<span class="container-item-first">{{item.name}}</span>
7-
<span class="container-item-second">{{item.roleName}}</span>
8-
<div class="container-item-intro">{{item.introduce}}</div>
9-
</div>
1010
</div>

src/app/components/homepage/goot-item/good-item.component.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,13 @@
4848

4949
&-item:hover {
5050
box-shadow: 0px 4px 5px 1px rgba(0, 0, 0, 0.3);
51-
5251
.container-item-intro {
5352
white-space: unset;
5453
display: -webkit-box; //必须结合的属性 ,将对象作为弹性伸缩盒子模型显示 。
5554
//-webkit-box-orient; //必须结合的属性 ,设置或检索伸缩盒对象的子元素的排列方式 。
5655
text-overflow: ellipsis; //可以用来多行文本的情况下,用省略号“…”隐藏超出范围的文本 。
5756
overflow: hidden;
5857
-webkit-line-clamp: 5;
59-
-webkit-box-orient: vertical;
6058
}
6159
}
6260
}

src/app/components/homepage/home-page.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ export class HomePageComponent {
2020
roleName: '前端工程师',
2121
avatar: 'string',
2222
introduce:
23-
'前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师'
23+
'前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师' +
24+
'前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师' +
25+
'前端工程师前端工程师前端工程师前端工程师前端工程师前端工程师'
2426
},
2527
{
2628
name: '张三',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy