gpt4 book ai didi

html - 字体不会改变,id 高度不会显示

转载 作者:行者123 更新时间:2023-11-28 06:06:52 25 4
gpt4 key购买 nike

问题1.字体不会改变
问题 2.“id”的高度不会改变

问题一,字体代码有什么地方不对吗?

<head>
<title>Jubilee Austin Developer</title>
<link rel="stylesheet" href="css/main.css">
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700' rel='stylesheet' type='text/css'>
</head>

问题二,例。这是我拥有的 3 个“ID”中的一个。它没有响应 CSS 或者至少它没有物理显示高度变化

<section id="about">
<div class="full-width">
<h2>A little bit about me</h2>
<div class="half-width">
<p> i've made my home base in Providence, Rhode Island with my small growing family. My journey into tech started with a degree in journalism.As I started sharing my writing online, I was fascinated with how easily I could get my voice out there. I was hooked and wanted to learn how to build my own site to fit my own specific needs.</p>
</div>
<div class="half-width">
<p>That curiosity then opened a door that could never be shut. When I learned how to build my first website, I realized I found something that gave me the freedom &amp; versatility I was looking for in my work. Now i've made a full switch to front-end development, where I can use my organization skills and eye for detail to write clean, elegant code.</p>
</div>
</div>
</section>

我的整个 CSS

/****Base syles***/
body {
font-family: 'Source Sans Pro', sans-serif;
}
#about, #work, #contact {
height: 600px;
}

完整的代码以备不时之需

http://i.stack.imgur.com/Q73h1.png

如果我遗漏了您需要的任何内容,请随时询问

最佳答案

关于高度部分:如果内容低于父元素高度并且没有背景或边框,您将看不到高度。添加类似 border: 1px solid red; 的内容以查看元素的完整高度。

#about, #work, #contact {
height: 600px;
border: 1px solid red;
}

关于html - 字体不会改变,id 高度不会显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36392461/

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