在xwalkview中加载web界面的时候上真机出现橙色边框的问题,解决办法有三种:
1.在根css文件中加上:
div:focus, div:active, button:focus, button:active, a:focus, a:active {
outline: none;
}
2.
body,div{
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
3.
.affected-element {
outline: 1px solid transparent;
}
此上三个方法基本能解决这个橙色边框问题!
12-22
3289
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)