![](/img/trans.png)
[英]How to Remove Resize handles and border of div with contentEditable and size style
[英]Remove “Border” on a Div
我正在为一个Web项目使用两个JavaScript库,一个用于拥有一张幻灯片(bootstrap-slider.js),另一个用于处理某个div上的事件Swipe( jquery.touchSwipe.min.js )
在jquery.touchSwipe.min.js库我可以设置一个excludedElements属性
$(".div_Oggetti").swipe({
swipe:function(event, direction, distance, duration, fingerCount, fingerData) {
if(....){
switch(direction){
case "left" :
...
break;
}
}
},
threshold:100,
excludedElements : ".slider-handle,button, input, select, textarea, a, .noSwipe"
});
但是当我插入滑动球的类(.slider-handle)时,在要从滑动事件中排除的元素上,将边缘id添加到了滑动球(铬色为蓝色,firefox为黑色正方形)
我无法使用border:none或text-decoration:none删除它
如何删除边框? 谢谢
只需将outline
属性设置为none
:
.slider-handle {
outline: none;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.