如何使用显示滚动内容?
16lz
2021-01-22
I came across https://minimill.co/ and saw it as a good example to what I'm trying to achieve.
我遇到了https://minimill.co/,并将其视为我正在努力实现的一个很好的例子。
I made an attempt to display the listed items like the site:
我试图显示列出的项目,如网站:
.wrap {
display: block;
list-style: none;
position: relative;
padding: 0;
margin: 0;
border: 0;
li {
background-color: green;
}
}
.content {
margin: 0 auto;
max-width: 66rem;
width: 90%;
padding: 0;
border: 0;
position: relative;
}
.right-details {
display: inline-block;
float: right;
box-size: border-box;
width: 33.33333%;
}
.left-img {
display: inline-block;
float: left;
box-sizing: border-box;
width: 66.66666%;
img {
width: 50px;
}
}
<ul class="wrap">
<li>
<div class="content">
<div class="left-img">
<img src="/assets/img/macbook-image.png"/>
</div>
<h2 class="right-details">
Item 1
</h2>
</div>
</li>
<li>
<div>
<h2>
Item 2
</h2>
</div>
</li>
</ul>
更多相关文章
- 显示json数组中的所有项目
- 市委组织部考核项目——多条数据的提交
- 在项目之间共享ASP.NET MVC部分视图
- React:更新列表中的一个项目而不重新创建所有项目
- 【项目实战】自监控-09-DataFrame索引操作(上篇)
- 为独立的“产品”打包django项目及其依赖项
- 用于Python项目的低内存和最快查询数据库
- 如何自动启动/调试大型项目?
- 人工智能和机器学习领域开源项目