久久久久久久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 為任何元素添加項目符號嗎?)
主站蜘蛛池模板: 超碰av人人 | 五月天国产 | 国产精品美女久久久久aⅴ国产馆 | 伊人精品一区二区三区 | 中文字幕第90页 | 亚洲精品久久久久久下一站 | 国产精品久久久久久久三级 | 欧美一区二区三区国产 | 久久国产精品一区二区三区 | 久久久久一区 | 91av视频| 精品无码久久久久国产 | 亚洲日日夜夜 | 亚洲色欧美另类 | 亚洲精品二区 | 欧美日日| 日韩欧美亚洲综合 | 亚洲第一成年免费网站 | 色综合久久久 | 久热电影 | 国产精品毛片 | 成人永久免费视频 | 欧美日韩视频在线第一区 | 欧美一区二区大片 | 免费国产一区二区 | 国产成人精品午夜视频免费 | 91就要激情 | 在线观看日韩 | 视频一区二区三区中文字幕 | 国产一区二区在线播放 | 久久五月婷 | 午夜免费视频 | 91精品国产一区二区三区 | 91亚洲精选 | 色综合99 | 免费久久久久久 | 久久国产精品72免费观看 | 亚洲 欧美 日韩 在线 | 九九久久这里只有精品 | 国产黑丝av | 婷婷午夜天|