dev_cs
杨树明 6 years ago
parent f40b3cfe08
commit 8f21fed37f

@ -141,7 +141,8 @@ class NewShixunModel extends Component{
belongto=(value)=>{ belongto=(value)=>{
this.setState({ this.setState({
type:value type:value,
keyword:undefined
}) })
let{page,status,keyword,order,diff,limit}=this.state; let{page,status,keyword,order,diff,limit}=this.state;
this.getdatalist(page,value,status,keyword,order,diff,limit) this.getdatalist(page,value,status,keyword,order,diff,limit)
@ -426,7 +427,20 @@ class NewShixunModel extends Component{
</a> </a>
<div className="cl"></div> <div className="cl"></div>
{JSON.stringify(item.description) == "{}"?"":<div className="newshixunmodelmidfont" dangerouslySetInnerHTML={{__html: item.description}}> <style>
{
`
.newradioStyles{
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
`
}
</style>
{JSON.stringify(item.description) == "{}"?"":<div className="newshixunmodelmidfont newradioStyles" dangerouslySetInnerHTML={{__html: item.description}}>
</div>} </div>}
{item.challenge_names.length===0?"":<div className="newshixunmodelbotfont"> {item.challenge_names.length===0?"":<div className="newshixunmodelbotfont">

@ -149,16 +149,12 @@
color: #999999; color: #999999;
margin-top: 15px; margin-top: 15px;
margin-left: 30px; margin-left: 30px;
max-width: 1100px;
overflow: hidden; overflow: hidden;
-o-text-overflow: ellipsis;
text-overflow: ellipsis; text-overflow: ellipsis;
max-width: 1100px; display: -webkit-box;
display: -webkit-box !important; -webkit-line-clamp: 2;
overflow: hidden !important; -webkit-box-orient: vertical;
text-overflow: ellipsis !important;
display: -webkit-box !important;
-webkit-line-clamp: 2 !important;
-webkit-box-orient: vertical !important;
} }
.newshixunmodelbotfont{ .newshixunmodelbotfont{

Loading…
Cancel
Save