gpt4 book ai didi

html - 使用 div 和 CSS 构建书籍封面

转载 作者:行者123 更新时间:2023-11-28 07:56:11 45 4
gpt4 key购买 nike

是否可以使用一些div和css来制作一个像下面这样的书的封面(忽略橙色背景)带有可编辑的标题,我在网上查到的大多数书的封面都不是这样的。我知道可能问了很多,但我真的很感激任何帮助。 enter image description here

最佳答案

是的。

<div style="width:400px; height:800px">
<div style="display: table; width:400px; height: 100px; overflow: hidden;">
<div style="display: table-cell; vertical-align: middle; background-color:blue;">
<h4 style="color:white;text-align:center">
<i style="color:yellow">image</i>Training book header text
</h4>
</div>
</div>
<div style="display: table; width:400px; height: 250px; overflow: hidden;">
<div style="display: table-cell; vertical-align: middle;">
<h1 style="text-align:center">Training book body text</h1>
</div></div>
<div style="display: table; width:400px; height: 100px;">
<div style="display: table-cell; vertical-align: middle; background-color:grey;">
<h4 style="color:white;text-align:center">
Training book footer text<i style="color:yellow; float:right">image</i>
</h4>
</div>
</div>
</div>

https://jsfiddle.net/457567wy/

关于html - 使用 div 和 CSS 构建书籍封面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30104169/

45 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com