【问题标题】:Need help SPECIFYING a list to hide from mobile view需要帮助指定要从移动视图中隐藏的列表
【发布时间】:2021-11-13 00:39:49
【问题描述】:

我正在使用 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;
  }

【问题讨论】:

    标签: css wordpress css-selectors wordpress-theming custom-wordpress-pages


    【解决方案1】:

    你在那里有一个 ID 而不是类,并且 .shape1 不是 .single-shape 的孩子试试这个:

    @media screen and (max-width: 600px) {
       .footer-shape-holder .single-shape.shape1 {
           display: none;
       }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-11
      相关资源
      最近更新 更多