如何在Bootstrap中隐藏bgcolor for mobile?

Man*_*ual 1 html css css3 twitter-bootstrap twitter-bootstrap-3

所以我的大屏幕一切正常.我如何隐藏仅bgcolor用于移动设备?

我有

<td bgcolor="##f5f5f5">
Run Code Online (Sandbox Code Playgroud)

如何在hidden-xs不隐藏整行的情况下放置?

Ahm*_*rif 5

将ID或类添加到您的<table> <td>目标或使用媒体查询设备ID,不要使用内联css进行响应式设计.

<td id="example_id" bgcolor="#f5f5f5">


 @media only screen and (max-width: 480px) {
      td#example_id {
      background-color: #f00 !important;  
     }
    }
Run Code Online (Sandbox Code Playgroud)