我如何将我的 行放置/放置在我的[[标头下?]下? 这是我的CSS代码:hr线必须位于h1标题的正下方 #Logo{ position: relative; background: url(/IMAGES/Photo\ by\ aldain-austria\ on\ unsplash.jpg); width: 100%; height: 100%; } #Logo h1{ position: absolute; top: 26%; left: 50%; transform: translate(-50%, 50%); } 以下是我的html: <div id="Logo"> <h1>Basil Carolus</h1> <hr> </div> 这是我的CSS代码:hr行必须直接在h1标题#Logo {的正下方:背景:url(/ IMAGES / Photo \ by \ aldain-austria \ on \ unsplash.jpg);宽度:100%...

问题描述 投票:-1回答:2
这是我的CSS代码:hr线必须位于h1标题的正下方
html css css-position css-transforms
2个回答
1
投票

0
投票
© www.soinside.com 2019 - 2024. All rights reserved.