文章詳情頁
前端 - css的加號(hào)是什么意思?
瀏覽:105日期: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. php多任務(wù)倒計(jì)時(shí)求助2. javascript - charles map remote映射問題3. javascript - vue組件的重復(fù)調(diào)用4. tp5.1如何使用獲取器添加自定義字段?5. 數(shù)組排序,并把排序后的值存入到新數(shù)組中6. css - 子元素跑到父元素外面7. 默認(rèn)輸出類型為json,如何輸出html8. javascript - console.log(typeof(named));的位置不同,第二個(gè)為什么會(huì)顯示undefined ?9. python的正則怎么同時(shí)匹配兩個(gè)不同結(jié)果?10. PHP訂單派單系統(tǒng)
排行榜

熱門標(biāo)簽