首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

设置一行DIV中的最后一个DIV

div {

display: flex;

justify-content: center;

align-items: center;

height: 100vh;

background-color: #333333;

}

.container {

width: 960px;

margin: 0 auto;

background-color: #ffffff;

padding: 20px 0;

}

.row {

display: flex;

justify-content: space-between;

}

.column {

flex-basis: 48%;

padding: 20px 0;

}

.column h2 {

color: #333333;

font-size: 24px;

font-weight: bold;

margin-bottom: 10px;

}

.column p {

color: #666666;

font-size: 18px;

line-height: 1.5;

margin-bottom: 20px;

}

.column .btn {

display: inline-block;

border-radius: 5px;

background-color: #666666;

color: #ffffff;

font-size: 18px;

font-weight: bold;

padding: 10px 20px;

margin-right: 10px;

}

.column .btn:hover {

background-color: #444444;

}

.column .image-container {

position: relative;

}

.column .image-container img {

width: 100%;

height: 200px;

object-fit: cover;

}

.column .image-container .image-popup {

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

background-color: rgba(0, 0, 0, 0.5);

display: flex;

justify-content: center;

align-items: center;

font-size: 24px;

color: #ffffff;

transition: 0.3s;

cursor: pointer;

}

.column .image-container .image-popup span {

font-size: 20px;

font-weight: bold;

}

.column .image-container .image-popup:hover {

background-color: rgba(0, 0, 0, 0.8);

}

.column .image-container .image-popup.active {

background-color: rgba(0, 0, 0, 0.8);

}

.column .image-container .image-popup.active span {

font-size: 24px;

font-weight: bold;

}

.column .image-container .image-popup.active:hover {

background-color: rgba(0, 0, 0, 0.5);

}

.column .image-container .image-popup.active:hover span {

font-size: 20px;

font-weight: bold;

}

.column .image-container .image-popup.active:hover:after {

content: "";

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

background: rgba(0, 0, 0, 0.8);

}

.column .image-container .image-popup.active:after {

content: "";

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

background: rgba(0, 0, 0, 0.8);

}

.column .image-container .image-popup.active:hover:before {

content: "";

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

background: rgba(0, 0, 0, 0.5);

页面内容是否对你有帮助?
有帮助
没帮助

相关·内容

20分17秒

HTML基础教程-26-div和span在网页中的应用【动力节点】

6分49秒

教你在浏览器里运行 Win11 ~

3分54秒

PS使用教程:如何在Mac版Photoshop中制作烟花效果?

10分30秒

053.go的error入门

6分41秒

2.8.素性检验之车轮分解wheel factorization

4分36秒

PS小白教程:如何在Photoshop中制作雨天玻璃文字效果?

2分4秒

PS小白教程:如何在Photoshop中制作出水瓶上的水珠效果?

1分10秒

PS小白教程:如何在Photoshop中制作透明玻璃效果?

1分6秒

PS使用教程:如何在Mac版Photoshop中制作“3D”立体文字?

7分5秒

MySQL数据闪回工具reverse_sql

1分26秒

PS小白教程:如何在Photoshop中完美合并两张图片?

1分7秒

PS小白教程:如何在Photoshop中给风景照添加光线效果?

领券