CSS定義了圓角文本框,可是獲得焦點(diǎn)時(shí)是方角,顯得很難看_html/css_WEB-ITnose
來源:懂視網(wǎng)
責(zé)編:小采
時(shí)間:2020-11-27 15:55:20
CSS定義了圓角文本框,可是獲得焦點(diǎn)時(shí)是方角,顯得很難看_html/css_WEB-ITnose
CSS定義了圓角文本框,可是獲得焦點(diǎn)時(shí)是方角,顯得很難看_html/css_WEB-ITnose:這樣定義的 .grade_text{border-radius:10px;cursor:pointer;text-indent:12px;} .grade_text:focus{border-radius:10px;cursor:pointer;} 下面分別是沒有和獲得焦點(diǎn)時(shí)的樣式 請問大家如何在獲得焦點(diǎn)時(shí)還是讓他為圓角呢。我已經(jīng)加了
導(dǎo)讀CSS定義了圓角文本框,可是獲得焦點(diǎn)時(shí)是方角,顯得很難看_html/css_WEB-ITnose:這樣定義的 .grade_text{border-radius:10px;cursor:pointer;text-indent:12px;} .grade_text:focus{border-radius:10px;cursor:pointer;} 下面分別是沒有和獲得焦點(diǎn)時(shí)的樣式 請問大家如何在獲得焦點(diǎn)時(shí)還是讓他為圓角呢。我已經(jīng)加了

這樣定義的
.grade_text{border-radius:10px;cursor:pointer;text-indent:12px;}
.grade_text:focus{border-radius:10px;cursor:pointer;}
下面分別是沒有和獲得焦點(diǎn)時(shí)的樣式
請問大家如何在獲得焦點(diǎn)時(shí)還是讓他為圓角呢。我已經(jīng)加了.grade_text:focus{border-radius:10px;cursor:pointer;}
回復(fù)討論(解決方案)
outline:none
添加一下這個(gè)屬性試試
去掉外邊框。
你用css定義了圓角文本框。那么在你的文本框獲得焦點(diǎn)的時(shí)候,你也設(shè)置圓角的邊框即可。
outline:none
添加一下這個(gè)屬性試試
去掉外邊框。
-------------------------------------------------------------------------
萬分感謝。雖然只是個(gè)小問題,但能夠體現(xiàn)朋友你的功底深厚。
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
CSS定義了圓角文本框,可是獲得焦點(diǎn)時(shí)是方角,顯得很難看_html/css_WEB-ITnose
CSS定義了圓角文本框,可是獲得焦點(diǎn)時(shí)是方角,顯得很難看_html/css_WEB-ITnose:這樣定義的 .grade_text{border-radius:10px;cursor:pointer;text-indent:12px;} .grade_text:focus{border-radius:10px;cursor:pointer;} 下面分別是沒有和獲得焦點(diǎn)時(shí)的樣式 請問大家如何在獲得焦點(diǎn)時(shí)還是讓他為圓角呢。我已經(jīng)加了