去掉点击链接时出现的虚线框的几个方法
网站建设 2023-01-28 20:48www.1681989.com免费网站
在这介绍几种去除的方法
直接给链接加是
onfocus=”this.blur()”.
<a href="#" onfocus="this.blur()">链接</a>
CSS实现
a{blr:expression(this.onFocus=this.close());} / 只支持IE,过多使用效率低 /
a{blr:expression(this.onFocus=this.blur());} / 只支持IE,过多使用效率低 /
a:focus { -moz-outle-style: none; } / IE不支持 /
htc实现IE支持
<public:attach event="onfocus" onevent="hscfsy()"/>
<script language="javascript">
function hscfsy(){
this.blur();
}
</script>
调用 a {behavior:url(htc文件所在路径地址)}
通过JavaScript遍历实现
wdow.onload=function()
{
for(var ii=0; ii document.lks$[$ii$]$.onfocus=function(){this.blur()}
}
5.对WordPress可以用内部的JQuery框架来去除
$("a").bd("focus",function(){
if(this.blur){ //如果支持 this.blur
this.blur();
}
});
直接给链接加是
onfocus=”this.blur()”.
<a href="#" onfocus="this.blur()">链接</a>
CSS实现
复制代码
代码如下:a{blr:expression(this.onFocus=this.close());} / 只支持IE,过多使用效率低 /
a{blr:expression(this.onFocus=this.blur());} / 只支持IE,过多使用效率低 /
a:focus { -moz-outle-style: none; } / IE不支持 /
htc实现IE支持
复制代码
代码如下:<public:attach event="onfocus" onevent="hscfsy()"/>
<script language="javascript">
function hscfsy(){
this.blur();
}
</script>
调用 a {behavior:url(htc文件所在路径地址)}
通过JavaScript遍历实现
复制代码
代码如下:wdow.onload=function()
{
for(var ii=0; ii document.lks$[$ii$]$.onfocus=function(){this.blur()}
}
5.对WordPress可以用内部的JQuery框架来去除
复制代码
代码如下:$("a").bd("focus",function(){
if(this.blur){ //如果支持 this.blur
this.blur();
}
});
上一篇:编制网站首页的基本原则
下一篇:Web设计10个在线开发工具介绍
网站设计
- 静宁会SEO的网站建设公司:全面提升您的网络影
- 提升在线业务的关键:选择最佳的丽水网站建设
- 浙江网站优化发展潜力如何
- 井研专业的网站建设公司:打造您的在线品牌
- 灵山SEO网站建设公司:提升您的在线业务表现
- 蒙城网站建设优化公司:提升您网站表现的理想
- 阳谷企业网站优化:提升线上业务力的关键
- 樟树专业的网站建设公司:打造您在线业务的坚
- 通河百度SEO排名的策略与技巧
- 重庆百度快照排名如何进行精准的客户引流
- 重庆百度快照排名
- 常宁便宜的建站公司:助您轻松打造在线业务
- 巫溪百度网站优化:提升网站曝光率与流量的关
- 湖北整站优化怎么做才能放大客户需求
- 闸北网站建设多少钱?全面解析与预算规划
- 辽宁企业网站优化怎么做电话营销