所以我有一个非常基本的问题,我似乎无法弄清楚。我已经在一个网站上工作了一段时间,但我在处理这个基本的代码串时遇到了问题。
我想将通过 id 标记链接的 h1
放在标准单单元格 HTML 表格中,该表格也通过 id 链接到 CSS 样式表。问题是当我这样做时,它总是会弄乱我的 CSS。我该怎么做才能解决这个问题?下面是 html 和 CSS,因为为了简单起见,我将它作为内联样式表运行。
#headingone {
color: #34bcb8;
text-align: center;
font-family: Cornerstone;
font-size: 6.25em;
padding-top: 3em;
text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3)
}
#tableone {
width: 1440px;
height: 900px;
border: 2px solid;
position: relative;
top: ;
text-align: center;
}
<table id="tableone">
<tr>
<th id="cell one"></th>
</tr>
</table>
<h1 id="headingone">Lost in Paradise</h1>
最佳答案
只是一个愚蠢的语法错误。我从来没有把 h1 放在 table 里面。由于ID,它看起来很饱满。 :/
关于html - 将链接到 css 样式表的 <h1> 放在也链接到 css 样式表的 html 表中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44144975/