显示:none无法在移动设备上运行

时间:2018-03-17 10:07:34

标签: css sass

我在移动设备上显示属性有问题。显示:none根本不起作用。我正在使用SASS。这是我的代码:

main {
  display: none;
}

@media(min-width: $mobile-breakpoint) {
  main {
    height: 800px;
    display: flex;
    background-color: inherit;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-image: url("./images/main.jpg");
  }
}

1 个答案:

答案 0 :(得分:0)

在移动断点中使用import-csv "c:\temp\vminfo.csv" | %{ $current=$_ $_.Datadisk.Split('**') | where {$_ -ne ''} | %{[pscustomobject]@{Name=$current.Name;Disk=$_.trim()}} } 。 例如:

display: none