📅  最后修改于: 2020-10-27 06:15:54             🧑  作者: Mango
本章讨论媒体对象。这些是抽象的对象样式,用于构建各种类型的组件(例如博客评论,推文等),这些组件在文本内容旁边具有左对齐或右对齐的图像。媒体对象的目的是使用于开发这些信息块的代码大大缩短。
媒体对象的目标(轻标记,易于扩展)是通过将类应用于一些简单标记来实现的。媒体对象有两种形式-
让我们在下面看到默认媒体对象的示例-
Media heading
This is some sample text. This is some sample text.
This is some sample text. This is some sample text.
This is some sample text. This is some sample text.
This is some sample text. This is some sample text.
让我们看一个媒体列表的例子-
-
Media heading
This is some sample text. This is some sample text.
This is some sample text. This is some sample text.
This is some sample text. This is some sample text.
This is some sample text. This is some sample text.
-
Media heading
This is some sample text. This is some sample text.
This is some sample text. This is some sample text.
This is some sample text. This is some sample text.
This is some sample text. This is some sample text.