若要去除它,通常的方法为: a:focus,input:focus{ -webkit-tap-highlight-color:rgba(0,0,0,0); } 不过看起来,这种方案在android 4.0以上版本的浏览器中是无效的。 一种在android 4.0以上版本浏览器中可以移除高亮边框的办法是: a:focus,input:focus{ -webkit-user-modify:read-write-plaintext-only; } ...
1、先来总结性的一句:在jq的前提下用这个: $("a,input,button").focus(function(){this.blur()}); 虽然把所有的 线边框都去掉了。 2、火狐 button,a,input[type=button],input[type=submit]::-moz-focus-inner{outline:0;}//火狐 这是针对火狐的,仅对火狐起作用。经测试,在ie下完全不起作用 3、ie...
input,button,a{outline:0 none !important;blr:expression(this.onFocus=this.blur()); }
a,button,input{ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-user-modify: read-write-plaintext-only; } 可根据实际情况添加 outline: none; 或 box-shadow: none; 有时候<img />图片放在a标签里也会出现边框,可设置图片的边框为0. 除此之外还要注意其伪类的设置。 js方法: onclick=...
遇到过同样的问题,可以设置 outline:0这个属性来实现。 在一个class里面写入这个属性,然后引用就可以了。
安卓webview中的html界面,点击时产生的边框,可以在js的代码中给元素添加如下属性:-webkit-tap-highlight-color即可去掉边框。1.webkit内核的浏览器,当用户点击一个链接或者通过js定义的可点击元素的时候,会出现一个半透明的灰色背景或者红色的边框。2.如果想要禁用高亮,可设置颜色的alpha值为0,也就...
这条代码就可以去掉蓝色的覆盖层 去掉了蓝色的覆盖层后,我发现还会有黄色的边框出现,加上outline: none;就可以解决了。这样长按a就不会出现蓝色的覆盖层了。 纠正:-webkit-user-modify: read-write-plaintext-only;这条代码设定链接的内容是可以修改的,并不能去掉覆盖层。
input 控件默认有边框效果,当使用 input 标记定义各种按钮时,通常需要清除其边框。其代码为“ input { border:0;} ”。A.正确B.错误
添加属性 :focus{outline:none} 就可以去掉默认点击时,边框会出现的蓝色边框。 :focus 选择器用于选取获得焦点的元素。 提示:接收键盘事件或其他用户输入的元素都允许 :focus 选择器。 不想点击时每次都要设置的话,最好在默认样式中就设置: 1 input,textarea,select,a:focus { ...
<input type="text" style="border:0;outline:none;width:200px;height:40px;"/><style> .edit{border:0;outline:none;width:200px;height:40px;}</style><input type="text" name="" value="" class="edit" />