当前位置: 首页 > news >正文

深圳模板网站多少钱/培训体系

深圳模板网站多少钱,培训体系,湖南郴州最新消息,网站建设官方商城Bootstrap V4系列 学习入门教程之 组件-媒体对象(Media object) 媒体对象(Media object)一、Example二、Nesting 嵌套三、Alignment 对齐四、Order 顺序五、Media list 媒体列表 媒体对象(Media object) B…

Bootstrap V4系列 学习入门教程之 组件-媒体对象(Media object)

  • 媒体对象(Media object)
    • 一、Example
    • 二、Nesting 嵌套
    • 三、Alignment 对齐
    • 四、Order 顺序
    • 五、Media list 媒体列表

媒体对象(Media object)

Bootstrap媒体对象的文档和示例,用于构建高度重复的组件,如博客评论、推文等。

一、Example

媒体对象有助于构建复杂和重复的组件,其中一些媒体与不围绕所述媒体的内容放在一起。此外,由于flexbox,它只需要两个必需的类就可以做到这一点。

下面是一个单一媒体对象的示例。只需要两个类——内容周围的.media.media-body 正文。可选的填充和边距可以通过间距实用程序进行控制。

<!--Example-->
<div class="media"><img src="../images/2.jpg" class="mr-3" alt="..."><div class="media-body"><h5 class="mt-0">Media heading</h5><p>Will you do the same for me? It's time to face the music I'm no longer your muse. Heard it's beautiful, be the judge and my girls gonna take a vote. I can feel a phoenix inside of me. Heaven is jealous of our love, angels are crying from up above. Yeah, you take me to utopia.</p></div>
</div>

页面展示效果:

在这里插入图片描述

二、Nesting 嵌套

媒体对象可以无限嵌套,但我们建议您在某个时候停止。将嵌套的.media放入父媒体对象的.media-body 正文中。

<!--嵌套 Nesting-->
<div class="media"><img src="../images/a1.jpg" class="mr-3" alt="..."><div class="media-body"><h5 class="mt-0">Media heading</h5><p>Standing on the frontline when the bombs start to fall. Heaven is jealous of our love, angels are crying from up above. Can't replace you with a million rings. Boy, when you're with me I'll give you a taste. There’s no going back. Before you met me I was alright but things were kinda heavy. Heavy is the head that wears the crown.</p><div class="media mt-3"><a class="mr-3" href="#"><img src="../images/1.jpg" class="mr-3" alt="..."></a><div class="media-body"><h5 class="mt-0">Media heading</h5><p>Greetings loved ones let's take a journey. Yes, we make angels cry, raining down on earth from up above. Give you something good to celebrate. I used to bite my tongue and hold my breath. I'm ma get your heart racing in my skin-tight jeans. As I march alone to a different beat. Summer after high school when we first met. You're so hypnotizing, could you be the devil? Could you be an angel? It's time to bring out the big balloons. Thought that I was the exception. Bikinis, zucchinis, Martinis, no weenies.</p></div></div></div>
</div>

页面展示效果:

在这里插入图片描述

三、Alignment 对齐

媒体对象中的媒体可以与flexbox实用程序对齐到.Media-body 正文内容的顶部(默认)、中间或末尾。

  • 顶部(默认)对齐方式:
<div class="media"><img src="..." class="align-self-start mr-3" alt="..."><div class="media-body"><h5 class="mt-0">Top-aligned media</h5><p>I’m gon’ put her in a coma. You give a hundred reasons why, and you say you're really gonna try. So I sat quietly, agreed politely. Suiting up for my crowning battle. And on my 18th Birthday we got matching tattoos. So très chic, yeah, she's a classic. I am ready for the road less traveled.</p><p>I'm walking on air (tonight). But down to earth. You're original, cannot be replaced. But in another life I would be your girl. We drove to Cali and got drunk on the beach. We can dance, until we die, you and I, will be young forever. Saw you downtown singing the Blues.</p></div>
</div>

页面展示效果:

在这里插入图片描述

  • 中间对齐方式:
<div class="media"><img src="..." class="align-self-center mr-3" alt="..."><div class="media-body"><h5 class="mt-0">Center-aligned media</h5><p>She'll turn cold as a freezer. At the eh-end of it all. Stinging like a bee I earned my stripes. Bikinis, zucchinis, Martinis, no weenies. I hope you got a healthy appetite. We can dance, until we die, you and I, will be young forever. We're living the life. We're doing it right. Word on the street, you got somethin' to show me, me.</p><p class="mb-0">Wanna see the show in 3D, a movie. They say, be afraid you're not like the others, futuristic lover. Open up your heart. So I sat quietly, agreed politely. Last Friday night. Yeah, you're lucky if you're on her plane. I'll be your gift, give you something good to celebrate.</p></div>
</div>

页面展示效果:

在这里插入图片描述

  • 末尾对齐方式:
<div class="media"><img src="..." class="align-self-end mr-3" alt="..."><div class="media-body"><h5 class="mt-0">Bottom-aligned media</h5><p>Come on, let your colours burst. I can feel this light that's inside of me. All night they're playing, your song. From Tokyo to Mexico, to Rio. There’s no going back. But down to earth. Magical, colorful, Mr. Mystery, ee. Different DNA, they don't understand you.</p><p class="mb-0">But down to earth. She's got that, je ne sais quoi, you know it. I can see the writing on the wall. The boys break their necks try'na to creep a little sneak peek. Take me, ta-ta-take me. Open up your heart. Thought that I was the exception. Boom, boom, boom. Venice beach and Palm Springs, summertime is everything. Bring the beat back. (This is how we do)</p></div>
</div>

页面展示效果:

在这里插入图片描述

四、Order 顺序

通过修改HTML本身或添加一些自定义的flexbox CSS来设置order属性(为您选择的整数),从而更改媒体对象中内容的顺序。

<!--Order-->
<div class="media"><div class="media-body"><h5 class="mt-0 mb-1">Media object</h5><p>I know there will be sacrifice but that's the price. Are you brave enough to let me see your peacock? Be your teenage dream tonight. Uh-huh, I see you. There’s no going back. Yeah, we maxed our credit cards and got kicked out of the bar. So let me get you in your birthday suit. You may fall in love when you meet her. Had the world in the palm of your hands. Don't let the greatness get you down, oh, oh yeah. Now we talking astrology, getting our nails did, all Japanese-y. Make me your Aphrodite.</p></div><img src="../images/2.jpg" class="ml-3" alt="...">
</div>

页面展示效果:

在这里插入图片描述

五、Media list 媒体列表

因为媒体对象的结构要求很少,所以您也可以在列表HTML元素上使用这些类。在您的<ul><ol>上,添加未设置样式的.list-unstyled 以删除任何浏览器默认列表样式,然后将.media应用于您的<li>s。与往常一样,在需要微调的地方使用间距实用程序。

<!--Media list-->
<ul class="list-unstyled"><li class="media"><img src="../images/2.jpg" class="mr-3" alt="..."><div class="media-body"><h5 class="mt-0 mb-1">List-based media object</h5><p>All my girls vintage Chanel baby. So you can have your cake. Tonight, tonight, tonight, I'm walking on air. Slowly swallowing down my fear, yeah yeah. Growing fast into a bolt of lightning. So hot and heavy, 'Til dawn. That fairy tale ending with a knight in shining armor. Heavy is the head that wears the crown.</p></div></li><li class="media my-4"><img src="../images/a1.jpg" class="mr-3" alt="..."><div class="media-body"><h5 class="mt-0 mb-1">List-based media object</h5><p>Maybe a reason why all the doors are closed. Cause once you’re mine, once you’re mine. Be your teenage dream tonight. Heavy is the head that wears the crown. It's not even a holiday, nothing to celebrate. A perfect storm, perfect storm.</p></div></li><li class="media"><img src="../images/1.jpg" class="mr-3" alt="..."><div class="media-body"><h5 class="mt-0 mb-1">List-based media object</h5><p>Are you brave enough to let me see your peacock? There’s no going back. This is the last time you say, after the last line you break. At the eh-end of it all.</p></div></li>
</ul>

页面展示效果:

在这里插入图片描述

http://www.whsansanxincailiao.cn/news/30239688.html

相关文章:

  • 北京大型网站建设公司/交换链接营销
  • 网站建设公司天强科技/鸡西seo顾问
  • 南宁老牌网站建设公司/nba排名最新排名
  • 在线网页转app/百度视频seo
  • 汉阴做网站/网站怎么做出来的
  • 珠海金泉做网站号公司或个人码/上海网站seo快速排名
  • 新加坡网站制作/百度收录提交
  • 院校网站建设/sem竞价账户托管
  • 大渡口集团网站建设/佛山疫情最新消息
  • 湖北商城网站建设/网络营销服务商
  • 如何做网站广告/北京网络优化
  • 有什么网站可以做设计赚钱/百度seo综合查询
  • 现在手机网站用什么做的好/凡科建站的优势
  • 网站未备案被阻断怎么做/太原百度关键词优化
  • seo营销网站的设计标准/广告推广策划
  • 做编程题的网站/黄冈地区免费网站推广平台
  • 常德网站建设/常见的网络营销方法有哪些
  • wordpress 访问密码/seo优化服务价格
  • 劫持网站代做排名/网络营销有什么岗位
  • 做欧美贸易的主要有哪些网站/品牌宣传文案范文
  • 电影视频网站源码/重庆森林
  • 石家庄搭建网站/企业建站要多少钱
  • 网站制作报价大约/怎么样才能引流客人进店
  • 航空网站建设/免费推广公司的网站
  • 做满屏网站的尺寸/教育培训网站官网
  • html5 网站建设方案/互联网推广方式
  • 网站建设百度搜索到左边的图/今日山东新闻头条
  • 郑州高档网站建设/电子商务
  • 网站建设主要包括什么/app开发费用一般多少钱
  • 网站设计与网页建设/东莞疫情最新消息今天新增