MaterialiseCSS卡设计

编程入门 行业动态 更新时间:2024-10-24 11:20:01
本文介绍了MaterialiseCSS卡设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我尝试使用materializecss在我的个人网站中调整材料设计,但是框架仅提供用于排除CARD设计顶部的图像的选项。

我想实现如下所示的链接[第2行,第2列/最后一个图像],其中图像坐在左侧的主要内容,想知道是否任何人都可以帮助我这一点,我会真正感谢您的帮助。谢谢!

卡材料设计示例

解决方案

@vizFlux

是您想要的代码

.card-image {float:left;宽度:40%; height:250px;}。card-image img {height:100%;}。 float:left;}。card-title {padding-left:20px;}

< div class =card> < div class =card-image> < img src =images / sample-1.jpgclass =hoverZoomLink> < / div> < div class =right-content> < span class =card-title>卡片头衔< / span> < div class =card-content> < p>我是一个非常简单的卡片。我善于包含小部分的信息。我很方便,因为我需要少量标记来有效地使用。 < / p> < / div> < div class =card-action> < a href =#>这是一个链接< / a> < / div> < / div>< / div>

看起来像这样:

I am trying to adapt the Material Design in my personal website using materializecss, however the framework only provide options to exclude otherwise images on top of the CARD design.

I want to achieve something as shown below in the link [2nd row, 2nd column/ last image] where the image is sitting at left beside the main content, wondering if anyone could help me on this and I would really appreciate your help on this. thanks!

Card Material Design Example

解决方案

@vizFlux

Here is the code which you want

.card-image { float: left; width: 40%; height: 250px; } .card-image img { height: 100%; } .right-content { width: 60%; float: left; } .card-title { padding-left: 20px; }

<div class="card"> <div class="card-image"> <img src="images/sample-1.jpg" class="hoverZoomLink"> </div> <div class="right-content"> <span class="card-title">Card Title</span> <div class="card-content"> <p>I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively. </p> </div> <div class="card-action"> <a href="#">This is a link</a> </div> </div> </div>

the output should look something like this:

更多推荐

MaterialiseCSS卡设计

本文发布于:2023-11-28 06:40:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641333.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:MaterialiseCSS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!