360瀏覽器上有表單提示框,自動(dòng)記錄以前寫過(guò)的一些內(nèi)容,如果再寫的時(shí)候他會(huì)給你一個(gè)提示,非常方便。但是當(dāng)一些表單本身就有下拉框的時(shí)候,就悲劇了。因?yàn)椋?
自動(dòng)記錄的表單會(huì)與表單的提示框重疊!!!
這個(gè)問(wèn)題,也很好解決:
只需要在不希望出現(xiàn)自動(dòng)表單的地方,寫上autocomplete="off" 屬性即可,如下:
<input type="text" name="start_time" autocomplete="off"/>
于是搞定!
參考閱讀:
如果需要自動(dòng)完成表單功能,但是不希望有表單的黃色背景,可以這樣寫(CSS3的方式):
input:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill {
-webkit-text-fill-color: #ededed !important; //字體顏色
-webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
background-color:transparent;
background-image: none;
transition: background-color 50000s ease-in-out 0s; //背景色透明 生效時(shí)長(zhǎng) 過(guò)渡效果 啟用時(shí)延遲的時(shí)間
}
input {
background-color:transparent;
}




