Commit e4bea2f4 authored by lixy's avatar lixy

公司名称超长显示处理

parent 4a469f75
...@@ -36,6 +36,14 @@ ...@@ -36,6 +36,14 @@
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.ellipsis2{
width: 200px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.item-right-p p{ .item-right-p p{
padding: 3px; padding: 3px;
margin: 3px; margin: 3px;
......
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
> >
<div class="item-right-p flex-jcc-aic"> <div class="item-right-p flex-jcc-aic">
<img :src="item.companyPic" style="width: 130px;height:100px;border-radius: 10px;"/> <img :src="item.companyPic" style="width: 130px;height:100px;border-radius: 10px;"/>
<div style="height: 90px;padding-left: 10px;width: 100%;"> <div style="height: 100px;padding-left: 10px;width: 100%;">
<div style="line-height: 20px;">{{item.companyName}}</div> <div style="line-height: 20px;" class="ellipsis2">{{item.companyName}}</div>
<div class="flex-jcb-aic"> <div class="flex-jcb-aic">
<div <div
style="position: relative;background: #ccc;border-radius: 10px;height: 10px;width: 100px;margin-right: 20px;"> style="position: relative;background: #ccc;border-radius: 10px;height: 10px;width: 100px;margin-right: 20px;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment