久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Css 偽類 input:not(disabled)not:[type="submit"]:f

Css pseudo classes input:not(disabled)not:[type=quot;submitquot;]:focus(Css 偽類 input:not(disabled)not:[type=submit]:focus)
本文介紹了Css 偽類 input:not(disabled)not:[type="submit"]:focus的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我想為輸入元素應用一些 css,并且我只想對未禁用且非提交類型的輸入執行此操作,下面的 css 不起作用,也許如果有人可以解釋我必須如何添加它.

I want to apply some css for inputs elements and I want to do that only for inputs that are not disabled and are not submit type, below css is not working, maybe if someone can explain me how this must be added .

input:not(disabled)not:[type="submit"]:focus{
box-shadow:0 0 2px 0 #0066FF;
-webkit-box-shadow:0 0 4px 0 #66A3FF;
}

推薦答案

代替:

input:not(disabled)not:[type="submit"]:focus {}

用途:

input:not([disabled]):not([type="submit"]):focus {}

disabled 是一個屬性,因此它需要括號,并且您似乎在 :not() 選擇器上混淆了/缺少冒號和括號.

disabled is an attribute so it needs the brackets, and you seem to have mixed up/missing colons and parentheses on the :not() selector.

演示:http://jsfiddle.net/HSKPx/

需要注意的一點:我可能是錯的,但是我不認為 disabled 輸入可以正常接收焦點,所以那部分可能是多余的.

One thing to note: I may be wrong, but I don't think disabled inputs can normally receive focus, so that part may be redundant.

或者,使用 :enabled

input:enabled:not([type="submit"]):focus { /* styles here */ }

再次,我想不出禁用輸入可以接收焦點的情況,因此似乎沒有必要.

Again, I can't think of a case where disabled input can receive focus, so it seems unnecessary.

這篇關于Css 偽類 input:not(disabled)not:[type="submit"]:focus的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

:hover:before text-decoration none has no effects?(:hover:before text-decoration none 沒有效果?)
Is CSS faster when you are specific?(當您特定時,CSS 會更快嗎?)
CSS sibling selectors (select all siblings)(CSS 兄弟選擇器(選擇所有兄弟))
IE: nth-child() using odd/even isn#39;t working(IE:使用奇數/偶數的 nth-child() 不起作用)
How can I tell if an element is in a shadow DOM?(如何判斷一個元素是否在影子 DOM 中?)
Can I use CSS to add a bullet point to any element?(我可以使用 CSS 為任何元素添加項目符號嗎?)
主站蜘蛛池模板: 色欧美片视频在线观看 | 国产精品久久久久久久久久软件 | 99精品网站| 永久免费在线观看 | 亚洲欧美中文字幕 | 欧美久久一区二区 | 亚洲最大av | 福利视频网站 | 久久久国产一区二区三区 | 亚洲精品一区二区三区蜜桃久 | 国产自产c区 | 亚洲午夜网| 中文字幕高清 | 美女久久久久 | 欧美在线高清 | 成人在线免费视频 | 91精品久久久久 | 国产一区二区三区在线 | 午夜影院在线观看 | 中文字幕日韩一区二区 | 国产免费a视频 | 久久成人人人人精品欧 | 色综合久 | 91亚洲国产成人久久精品网站 | 久久久久久久香蕉 | 波多野吉衣在线播放 | 一区二区免费 | 免费在线观看av网站 | 奇米久久久 | 色姑娘av| 亚洲免费在线观看 | 精品久久久久久久 | 日本视频一区二区三区 | 欧美一区二区三区在线播放 | av在线播放一区二区 | 国产精品一区二区av | 视频一区二区中文字幕 | 午夜视频一区 | 久久中文字幕一区 | 色先锋影音| 日韩精彩视频 |