如何为某些维度添加网格单元格宽度0

时间:2017-02-22 07:05:25

标签: css material-ui

使用什么代替mdl-cell--0-col-phone来禁用元素或使其为零宽度?

<div className="mdl-grid">
  <div className="mdl-cell mdl-cell--2-col-phone mdl-cell--2-col-tablet mdl-cell--2-col-desktop">
    <LeftContent/>
  </div>
  <div className="mdl-cell mdl-cell--0-col-phone mdl-cell--4-col-tablet mdl-cell--8-col-desktop">
    <!-- no content -->
  </div>
  <div className="mdl-cell mdl-cell--2-col-phone mdl-cell--2-col-tablet mdl-cell--2-col-desktop">
    <RightContent/>
  </div>
</div>

1 个答案:

答案 0 :(得分:0)

试试这个课程

mdl-cell--hide-phone