1、去掉点击a标签时的边框(input/textarea等form中的一些标签中会出现这种问题):

tap-highlight-color:当用户点击iOS的Safari浏览器中的链接或JavaScript的可点击的元素时,覆盖显示的高亮颜色。未出现在css草案中

-webkit-tap-highlight-color:rgba(0, 0, 0, 0);

-moz-tap-highlight-color:rgba(0, 0, 0, 0);

-o-tap-highlight-color:rgba(0, 0, 0, 0);

-ms-tap-highlight-color:rgba(0, 0, 0, 0);

tap-highlight-color:rgba(0, 0, 0, 0);

2、文本一行显示不完用省略号表示

.hiddenMore{

overflow:hidden;

text-overflow:ellipsis;

-o-text-overflow:ellipsis;

white-space:nowrap; 

}

文本不超过n行,超过部分用省略号显示[webkit私有属性]

.hiddenMore{

overflow:hidden;

display:-webkit-box;

-webkit-line-clamp:2;

-webkit-box-orient:vertical;

}

相关文章:

  • 2022-12-23
  • 2021-10-28
  • 2021-10-23
  • 2022-01-10
  • 2021-09-01
  • 2021-10-06
  • 2022-01-24
  • 2022-03-08
猜你喜欢
  • 2021-12-19
  • 2021-10-30
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案