修改默认样式

点击,聚焦input不出现框

input:focus { outline: none; }
input{outline:none;}

取消select默认样式

select {
/*Chrome和Firefox里面的边框是不一样的,所以复写了一下*/
border: solid 1px #000;
/*很关键:将默认的select选择框样式清除*/
appearance:none;
-moz-appearance:none;
-webkit-appearance:none;
/*将背景改为红色*/
background:red;
/*加padding防止文字覆盖*/
padding-right: 14px;
}
/*清除ie的默认选择框样式清除,隐藏下拉箭头*/
select::-ms-expand { display: none; }

只允许输入字符

onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)))"

取消input提示栏

autocomplete="off"

jQuery选中被选中的option

"(#select_id").find("option:selected")

table设置边框不显示

加上下段代码

border-collapse: collapse;
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容