Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 材料设计表未显示全宽角度2_Angular_Material Design - Fatal编程技术网

Angular 材料设计表未显示全宽角度2

Angular 材料设计表未显示全宽角度2,angular,material-design,Angular,Material Design,您好,我有一个简单的angular应用程序,当组件加载时显示以下内容 由于某些原因,该表未在左面板内显示全宽 模板代码如下 <div class="demo-graphs mdl-shadow--2dp mdl-color--white mdl-cell mdl-cell--8-col"> <h3>Tasks Page <table class="mdl-data-table mdl-js-data-table mdl-data-t

您好,我有一个简单的angular应用程序,当组件加载时显示以下内容

由于某些原因,该表未在左面板内显示全宽

模板代码如下

<div class="demo-graphs mdl-shadow--2dp mdl-color--white mdl-cell mdl-cell--8-col">
      <h3>Tasks Page    
      <table class="mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp full-width">
          <thead>
            <tr>
              <th class="mdl-data-table__cell--non-numeric full-width">Material</th>
              <th>Quantity</th>
              <th>Unit price</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td class="mdl-data-table__cell--non-numeric">Acrylic (Transparent)</td>
              <td>25</td>
              <td>$2.90</td>
            </tr>
            <tr>
              <td class="mdl-data-table__cell--non-numeric">Plywood (Birch)</td>
              <td>50</td>
              <td>$1.25</td>
            </tr>
            <tr>
              <td class="mdl-data-table__cell--non-numeric">Laminate (Gold on Blue)</td>
              <td>10</td>
              <td>$2.35</td>
            </tr>
          </tbody>
      </table>
</div>

任务页
材料
量
单价
丙烯酸(透明)
25
$2.90
胶合板(桦木)
50
$1.25
层压(蓝色上的金色)
10
$2.35

你知道我怎么把桌子全宽显示吗

只要用

<table class="mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp full-width">

只要用

<table class="mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp full-width">

你能在plunker上制造问题吗?plunkr-你能在plunker上制造问题吗?plunkr-这显然没有反应。。该表仅部分显示在手机上。请检查此表。我的更新@user2180794无效。。它将数据卡推到底部,而您必须将其添加到plunker,您给我的代码我解决了问题这是材料设计表本身的问题。它没有反应。这显然没有反应。。该表仅部分显示在手机上。请检查此表。我的更新@user2180794无效。。它将数据卡推到底部,而您必须将其添加到plunker,您给我的代码我解决了问题这是材料设计表本身的问题。它没有反应。
<div class="demo-graphs  mdl-color--white mdl-cell mdl-cell--12-col">