文章詳情頁
css3 - @media screen and 和@media only screen and有什么不同?
瀏覽:186日期:2023-08-01 15:32:12
問題描述
RT,求解
@media screen and 和@media only screen and有什么不同?
問題解答
回答1:not/only
媒體類型還支持 not和only關(guān)鍵字,它們可以用來更方便的定位某個媒體設(shè)備:
not:排除某種制定的媒體類型
@media not print and (color){}only:指定某種特定的媒體類型,可以用來排除不支持媒體查詢的瀏覽器:
@media only screen and (color){}
某大神的完整鏈接http://www.cnblogs.com/august...
回答2:這個我也不知道 很好奇 所以查了下http://stackoverflow.com/questions/8549529/what-is-the-difference-betw...貌似就是說這些媒體類型存在一定的影響關(guān)系,不加only會被別的媒體類型繼承,學(xué)習(xí)了
標(biāo)簽:
CSS
相關(guān)文章:
1. boot2docker無法啟動2. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””3. docker-compose中volumes的問題4. nignx - docker內(nèi)nginx 80端口被占用5. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.6. java - SSH框架中寫分頁時(shí)service層中不能注入分頁類7. golang - 用IDE看docker源碼時(shí)的小問題8. docker images顯示的鏡像過多,狗眼被亮瞎了,怎么辦?9. javascript - mock.js可以存儲數(shù)據(jù)嗎10.排行榜boot2docker無法啟動 1. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities”” 2. docker-compose中volumes的問題 3. docker安裝后出現(xiàn)Cannot connect to the Docker daemon. 4. nignx - docker內(nèi)nginx 80端口被占用 5. java - SSH框架中寫分頁時(shí)service層中不能注入分頁類 6. node.js - antdesign怎么集合react-redux對input控件進(jìn)行初始化賦值 7. javascript - mock.js可以存儲數(shù)據(jù)嗎 8. 關(guān)于docker下的nginx壓力測試 9. docker容器呢SSH為什么連不通呢? 10. docker api 開發(fā)的端口怎么獲??? 熱門標(biāo)簽

網(wǎng)公網(wǎng)安備