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

輸入類型=“按鈕"的CSS屬性選擇器無法在 IE

Css attribute selector for input type=quot;buttonquot; not working on IE7(輸入類型=“按鈕的CSS屬性選擇器無法在 IE7 上運(yùn)行)
本文介紹了輸入類型=“按鈕"的CSS屬性選擇器無法在 IE7 上運(yùn)行的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我正在處理一個(gè)大表單,它在整個(gè)表單中包含很多按鈕,因此我試圖在我的主 css 文件中獲取有效的 input[type="button"] 以便它可以捕獲所有按鈕必須為每個(gè)單獨(dú)的類添加一個(gè)類,由于某種原因,這在 IE7 上不起作用,在網(wǎng)上檢查后說 IE7 應(yīng)該支持這一點(diǎn).

I am working on a big form and it contains a lot of buttons all over the form, therefore I am trying to get working input[type="button"] in my main css file so it would catch all buttons with out having to add a class to every single one, for some reason this is not working on IE7, after checking on the web it says that IE7 should be supporting this.

還必須是 type="button" 而不是 type="submit" 因?yàn)椴⒎撬邪粹o都會(huì)提交表單.

Also it has to be type="button" and not type="submit" as not all buttons will submit the form.

誰能提示我做錯(cuò)了什么?

Could anybody give a hint what am I doing wrong?

input[type="button"] {
    text-align:center;
}

我也試過 input[type=button]

推薦答案

我很難讓 input[type=button] 選擇器在 IE7 或 IE8 中工作.問題原來是 HTML 頁面缺少!DOCTYPE"聲明.一旦我添加了

I was struggling getting input[type=button] selectors working in IE7 or IE8. The problem turned out to be that the HTML Pages were missing a "!DOCTYPE" declaration. Once I added

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

然后一切正常.您顯然可以使用不同的!DOCTYPE"聲明來滿足您的要求.

Then everything worked fine. You can obviously use a different "!DOCTYPE" declaration to suit your requirements.

這篇關(guān)于輸入類型=“按鈕"的CSS屬性選擇器無法在 IE7 上運(yùn)行的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

CSS selector when :target empty(:target 為空時(shí)的 CSS 選擇器)
Does the CSS direct decendant (gt;) not have any value in selectivity?(CSS 直接后代 (gt;) 在選擇性方面沒有任何價(jià)值嗎?)
Using querySelectorAll(). Is the result returned by the method ordered?(使用 querySelectorAll().方法返回的結(jié)果是否有序?)
Safari bug :first-child doesn#39;t update display:block when items are removed with JS(Safari 錯(cuò)誤:當(dāng)使用 JS 刪除項(xiàng)目時(shí),first-child 不更新 display:block)
nth-Child CSS selectors(nth-子 CSS 選擇器)
Using same ID for multiple HTML tags?(對(duì)多個(gè) HTML 標(biāo)簽使用相同的 ID?)
主站蜘蛛池模板: 一区二区三区欧美 | 秋霞电影一区二区 | 天天拍天天插 | 国产精品一二区 | 久久国产激情视频 | 欧美a免费| 免费av观看 | 一区二区三区高清 | 一级中国毛片 | 亚洲品质自拍视频 | 黄网站免费观看 | 日韩美女一区二区三区在线观看 | 久久九九99 | 日本一本在线 | av国产精品| 九九九久久国产免费 | 伊人网91| 国产精品亚洲精品日韩已方 | 看黄在线 | 欧美性猛交一区二区三区精品 | 成人网av| 亚洲激情综合网 | 91在线免费观看 | 欧美男人天堂 | 国产精品a级 | 国产成人精品一区二区三区 | www.天天操| 国产黄色麻豆视频 | 久久免费精品视频 | 中文字幕av一区二区三区 | 91一区| 在线免费视频一区 | 亚洲3级 | 亚洲一级黄色 | 日韩久久久久久 | 91视频国产一区 | 精品一区二区在线视频 | 亚洲国产欧美精品 | 国产精品亚洲一区 | 亚洲成人免费 | 91热在线|