我正在尝试调整元素的页眉大小。我试过用 .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 ,从 type
、id
和 class
选择器的基本区别开始。
当你想输入时,你有一个 id 选择器:
header{
height:700px;
width:1600px;
border-color: #00FF00;
}
关于css - 如何在 CSS 中更改或调整标题大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43315137/