4

我正在阅读Angular-Material-site 上的md-list(和 md-item)示例。在源代码中,我看到了这个 html:

<div ng-controller="AppCtrl">
  <md-content>
    <md-list>
      <md-item ng-repeat="item in todos">
        <md-item-content>
          <div class="md-tile-left">
              <img ng-src="{{item.face}}" class="face" alt="{{item.who}}">
          </div>
          <div class="md-tile-content">
            <h3>{{item.what}}</h3>
            <h4>{{item.who}}</h4>
            <p>
              {{item.notes}}
            </p>
          </div>
        </md-item-content>
      </md-item>
    </md-list>
  </md-content>
</div>

但是我看不到 md-tile-left 和 md-tile-content 是什么,我在文档或列表示例源代码的 CSS 中的任何地方都找不到这些。我在哪里可以找到关于这些课程的信息?

4

1 回答 1

3

通过检查源代码,我在 docs.css 中找到了这些类

/** * 列表项的左侧平铺。*/

.md-tile-left {
  min-width: 56px;
  margin-right: -16px; }

/** * 列表项的中心内容图块。*/

.md-tile-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 16px;
  text-overflow: ellipsis; }
  .md-tile-content h3 {
    margin: 0 0 3px 0;
    font-weight: 400;
    font-size: 1.1em; }
  .md-tile-content h4 {
    margin: 0 0 3px 0;
    font-weight: 400;
    font-size: 0.9em; }
  .md-tile-content p {
    margin: 0 0 3px 0;
    font-size: 0.75em; }

请参阅 -在 github 上列出 css 文件

于 2015-03-16T09:00:44.497 回答