gpt4 book ai didi

HTML/CSS 样式标签不起作用

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

出于某种原因,我的样式标签在嵌入式 CSS 或 HTML 中均未被提取。字体系列更改未生效,border-top: 5px solid black; 行也未生效。有什么建议吗?

<!DOCTYPE html>
<html>
<head>
<title>
My Resume
</title>
<style type=“text/css”>

#ob {
border-top: 5px solid black;
}

</style>
</head>

<body>
<div>
<h1 style=“font-family: sans-serif”>
<strong>Corey Schnedl </strong>
</h1>

<h4 style=“font-family: Sans-Serif”>
<strong> XXXXXXXXXXX / XXXXXXXX / XXXXX / XXXXX </strong>
<br>
<strong>XXXXXXXXXXXXX</strong>
</h4>
</div>

<div>
<h3 style=“font-family:Arial”>
<strong>Objective</strong>
</h3>
<p>
To obtain an entry-level position as a Java software developer.
</div>

</body>


</html>

最佳答案

使用纯文本引号。这"不是

四次破坏您的代码的事件:

  • <style type=“text/css”>
  • <h1 style=“font-family: sans-serif”>
  • <h4 style=“font-family: Sans-Serif”>
  • <h3 style=“font-family:Arial”>

<!DOCTYPE html>
<html>
<head>
<title>
My Resume
</title>
<style type="text/css" rel="stylesheet">

#ob {
border-top: 5px solid black;
}

</style>
</head>

<body>
<div>
<h1 style="font-family: sans-serif">
<strong>Corey Schnedl </strong>
</h1>

<h4 style="font-family: Sans-Serif">
<strong> XXXXXXXXXXX / XXXXXXXX / XXXXX / XXXXX </strong>
<br>
<strong>XXXXXXXXXXXXX</strong>
</h4>
</div>

<div>
<h3 style="font-family:Arial">
<strong>Objective</strong>
</h3>
<p>
To obtain an entry-level position as a Java software developer.
</div>

</body>


</html>

关于HTML/CSS 样式标签不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41319301/

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