1、手机页面上按钮点击有阴影,如何去掉?
a{
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
}
2、元素高度是百分比,里面的文字居中显示:
div{
display: flex;
align-items:center;
justify-content:center;
}
1、手机页面上按钮点击有阴影,如何去掉?
a{
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
}
2、元素高度是百分比,里面的文字居中显示:
div{
display: flex;
align-items:center;
justify-content:center;
}
转载于:https://www.cnblogs.com/cuiyunxian/p/6531926.html