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

基于寬度的CSS選擇器?

CSS selector based on width?(基于寬度的CSS選擇器?)
本文介紹了基于寬度的CSS選擇器?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

是否有一個(gè) CSS 規(guī)則可以根據(jù)元素的寬度匹配元素?如果沒(méi)有,在標(biāo)準(zhǔn)中提出這個(gè)建議會(huì)不會(huì)很有趣?

Is there a CSS rule that would match elements based on their width? If not, would it be interesting to propose that in the standard?

你可以做類似 code:max-width(200px) { white-space: nowrap;} 讓所有小代碼標(biāo)簽強(qiáng)制換行.

One could do something like code:max-width(200px) { white-space: nowrap; } to have all small code tag force line break.

我知道我可以使用一些 js.

I know I could use some js.

推薦答案

是否有根據(jù)寬度匹配元素的 CSS 規(guī)則?

Is there a CSS rule that would match elements based on their width?

沒(méi)有.

如果不是,在標(biāo)準(zhǔn)中提出這個(gè)建議會(huì)很有趣嗎?

If not, would it be interesting to propose that in the standard?

也許可以,但不是 Selectors 標(biāo)準(zhǔn),因?yàn)?Selectors 并不打算與 CSS 的樣式方面緊密結(jié)合.

Maybe, but not the Selectors standard, because Selectors is not intended to be tightly coupled with the styling aspect of CSS.

幾年前曾有人提議將一種稱為元素查詢"的東西標(biāo)準(zhǔn)化,但除了一些概念驗(yàn)證之外,它們似乎大多已消散.可能是因?yàn)樗鼈儫o(wú)法以穩(wěn)健的方式規(guī)范和實(shí)現(xiàn)(循環(huán)依賴立即浮現(xiàn)在腦海).

There were proposals to standardize something called "element queries" a few years ago, but other than a few proofs-of-concept, they seem to have mostly dissipated. Probably because they're just not feasible to spec and implement in a way that is robust (cyclic dependencies immediately come to mind).

這篇關(guān)于基于寬度的CSS選擇器?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Style every third element?(每隔三個(gè)元素設(shè)置樣式?)
Why shouldn#39;t I use ID selectors in CSS?(為什么我不應(yīng)該在 CSS 中使用 ID 選擇器?)
What does img[class*=quot;alignquot;] mean in CSS?(CSS 中的 img[class*=“align] 是什么意思?)
CSS: Last element on line(CSS:最后一個(gè)元素)
How do I select every other div class element using just CSS (no js)(如何僅使用 CSS(無(wú) js)選擇所有其他 div 類元素)
Tool for checking unused CSS selectors?(檢查未使用的 CSS 選擇器的工具?)
主站蜘蛛池模板: 欧美性猛交一区二区三区精品 | 亚洲女人天堂成人av在线 | 日本精品视频 | 午夜影院黄 | 欧美成人a | 国产成人综合亚洲欧美94在线 | 久久久久久国产精品三区 | 久久精品一区二区 | 中文字幕第一页在线 | a网站在线观看 | 伊人超碰 | 欧美a区| aaa大片免费观看 | 在线免费观看色 | 视频在线亚洲 | 一区二区三区国产好的精 | 色偷偷人人澡人人爽人人模 | 亚洲免费观看视频网站 | 欧美乱码精品一区二区三区 | 国产成人在线一区二区 | 日韩一区二区三区视频在线播放 | 美女天天干天天操 | 午夜免费网站 | 久久99精品视频 | 亚洲中午字幕 | 国产日韩精品一区 | 亚洲3级| 欧美一区二| 激情综合五月天 | 精品国产视频在线观看 | 国产日韩在线观看一区 | 亚洲天堂免费在线 | 亚洲精品在线看 | 91免费在线视频 | 久久久久中文字幕 | 中文字幕日韩欧美 | 精品久久国产视频 | 亚洲一区久久久 | 区一区二在线观看 | 久久一热 | 日韩综合在线播放 |