我正在尝试将文本附加到棕色框的左侧。我不能。我不知道代码有什么问题。请帮助我。
CSS
.hero { position: relative; bottom: 80px; display: flex; justify-content: left; align-items: start; color: rgb(255, 255, 255); background-color: rgb(80, 40, 40); width: 1600px; height: 1955px; margin: auto; border-radius: 60px; } .firstHeroLeft-column { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; align-items: start; margin-top: 180px; margin-left: 40px; justify-content: left; } .middleHeroLeft-column { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; align-items: start; margin-top: 580px; margin-left: 40px; justify-content: left; } .bottleImg { width: 80%; float: right; } .europeImg { width: 80%; } .trademarkImg { width: 80%; }
HTML
以上是CSS 帮助的详细内容。更多信息请关注PHP中文网其他相关文章!