文章詳情頁
css - flexbox與list-style沖突?
瀏覽:60日期:2023-07-22 15:49:20
問題描述
使用flexbox讓li里的內(nèi)容垂直居中但list-style:circle失效了去掉display:flex又好了 怎么解決?
詳見http://jsfiddle.net/ABxx3/180/選項處需要實現(xiàn)垂直居中且有l(wèi)ist-style
問題解答
回答1:沖突的本質(zhì)是,list-style 是應(yīng)用在 display: list-item 元素上的。現(xiàn)在你把 display 修改為了 flex,自然是不要不要的。
標(biāo)簽:
CSS
相關(guān)文章:
1. python - beautifulsoup獲取網(wǎng)頁內(nèi)容的問題2. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問題3. docker鏡像push報錯4. docker - 如何修改運行中容器的配置5. docker-machine添加一個已有的docker主機問題6. fragment - android webView 返回后怎么禁止重新渲染?7. docker不顯示端口映射呢?8. android studio總是在processes running好久9. dockerfile - [docker build image失敗- npm install]10. angular.js - Angular 2 + Django構(gòu)建的Web應(yīng)用, 如何合理搭配 ?
排行榜

熱門標(biāo)簽