我正在使用 Wordpress 并嘗試在 Wordpress 站點的“附加 css”部分中指定一個串列以從移動視圖中隱藏。我附上了下面這棵樹的截圖。(這是 div id="footer-8" 下的串列)

到目前為止我使用的代碼是但它似乎沒有做任何事情!
@media screen and (max-width: 600px) {
#footer-shape-holder li.single-shape shape1 {
visibility: hidden;
clear: both;
float: left;
margin: 10px auto 5px 20px;
width: 28%;
display: none;
}
謝謝!
uj5u.com熱心網友回復:
你有一個 ID 而不是那里的類,并且 .shape1 不是 .single-shape 的孩子試試這個:
@media screen and (max-width: 600px) {
.footer-shape-holder .single-shape.shape1 {
display: none;
}
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/351424.html
標籤:css WordPress的 css-选择器 wordpress 主题 自定义wordpress-pages
上一篇:在導航欄中垂直對齊專案
