點擊,聚焦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;