sách gpt4 ai đã đi

css - 3 格 : one centered and the two others one in each side

In lại 作者:行者123 更新时间:2023-11-28 13:40:44 28 4
mua khóa gpt4 Nike

我有这个标记:



some code



我正在尝试获取此布局:

nhập mô tả hình ảnh ở đây注意:上一个和下一个按钮靠近#player

我正在尝试这样:

            .nextBtn{
float:left;
width:15%;
margin-top:180px;
}
.nextBtn a{
float:right;
}
.player{
float:left;
width:70%;
margin-top:100px;
}
.prevBtn{
float:right;
width:15%;
margin-top:180px;

}
.rightBtn a{
float:left;

}

问题是如果分辨率太大或太小,它不会像布局一样,

对于任何分辨率,我怎样才能实现这一目标?

1 Câu trả lời

用一个 770px + 左右按钮宽度的 div 包围它(将它们的宽度从百分比更改为固定宽度)。

这将保证所有人都在一起。

还可以使用 overflow: hidden 或末尾带有 clear:both 的 div,这将确保一切就绪。

关于css - 3 格 : one centered and the two others one in each side,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7724576/

28 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com