文章詳情頁
前端 - css的加號(hào)是什么意思?
瀏覽:81日期:2023-08-04 17:58:58
問題描述
input.#{$prefix}-input-search + .button-search { border-top-left-radius: 0; border-bottom-left-radius: 0; left: -0.3em; } input.#{$prefix}-input-search:focus + .button-search { background: $border-focus-color; }
input.#{$prefix}-input-search + .button-search里面的+是什么意思?
問題解答
回答1:選擇相鄰元素。。。
回答2:這里有一個(gè)很生動(dòng)的 CSS 選擇器 DEMO:http://flukeout.github.io/這篇文章里介紹得很全了:http://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize--net-16048這是一些常用的選擇器介紹:https://developer.mozilla.org/zh-CN/docs/Web/Guide/CSS/Getting_started/Selectors
標(biāo)簽:
CSS
相關(guān)文章:
1. javascript - 有適合開發(fā)手機(jī)端Html5網(wǎng)頁小游戲的前端框架嗎?2. css - 如何選擇字體?3. css3 - 想用rem給width與height進(jìn)行賦值時(shí),該怎么計(jì)算呢?以誰為參照物呢?4. Phpstorm搭配Sqlsever2008實(shí)現(xiàn)PDO連接報(bào)錯(cuò)5. java - 線上應(yīng)用,如果數(shù)據(jù)庫操作失敗的話應(yīng)該如何處理?6. atom開始輸入!然后按tab只有空格出現(xiàn)沒有html格式出現(xiàn)7. javascript - js setTimeout在雙重for循環(huán)中如何使用?8. mysql - 這種分級(jí)一對(duì)多,且分級(jí)不平衡的模型該怎么設(shè)計(jì)表?9. javascript - arguments.callee10. MySQL中的enum類型有什么優(yōu)點(diǎn)?
排行榜

熱門標(biāo)簽