使用自定义data属性和attr()属性
效果:在html自定义tooltips 显示在盒子底部
<a class="caption" href="#" data-title='Vulture' data-description='...'>
< img src="img.jpg" alt="Illustration"/>
</a>
.caption::after {
content: attr(data-title);
...
}
calc()实现智能栅格
eg:.dashed-line-about {
width: 0;
height: calc(100% + 220px);
position: absolute;
z-index: 2;
top: -110px;
left: 14% ;/*写给不支持calc()的浏览器*/
left: calc(14% - 24px);
left: -moz-calc(14% - 24px);
left: -webkit-calc(14% - 24px);
border-right: 1px dashed #ECECEC;
}