gpt4 book ai didi

css - 如何在 CSS 中更改或调整标题大小

转载 作者:行者123 更新时间:2023-11-28 03:58:46 28 4
gpt4 key购买 nike

我正在尝试调整元素的页眉大小。我试过用 .body 但它失败了。无论如何我可以调整大小吗?

CSS
#header{
height:700px;
width:1600px;
border-color: #00FF00;
}


HTML
<header>
<h1> <img style="vertical-align:middle" src="img/focus.png"/><span>Focus</span></h1>
<p>A landing page for your app with focus</p>
</header>

最佳答案

Read about CSS selectors ,从 typeidclass 选择器的基本区别开始。

当你想输入时,你有一个 id 选择器:

header{
height:700px;
width:1600px;
border-color: #00FF00;
}

关于css - 如何在 CSS 中更改或调整标题大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43315137/

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