.title{
width:230px;
overflow:hidden;
white-space:nowrap;
text-overflow:ellipsis;
}
overflow:hidden
超出隐藏
{
position: absolute;
left: 50%;
}水平居中
三角形
:after{
position:absolute;
content:'';
left:0;
bottom:0;
width:0;
height:0;
border-left:70px solid transparent;
border-right:70px solid transparent;
border-bottom:10px solid transparent;
}
index.css .index-menu .menu-list ul{
width:1160px;
}
本来是1100px,表面多了60px,但是这样方便循环输出,是一个布局的小技巧。
三角形代码

.menu .menu-tips{width:155px;height:75px;margin:0 auto;background-color:red;
text-align: center;line-height:65px;}
.menu .menu-tips:after{content:'';
display: block;
width:0;
height:0;
border-left:78px solid transparent;
border-right:78px solid transparent;
border-bottom:10px solid #fff;}
使用:after伪类制作menu标签