【发布时间】:2020-10-07 06:54:54
【问题描述】:
<html>
<head>
<title>Best News Ever</title>
<meta charset="UTF-8">
<meta name="discription" content="This page is a website to learn HTML">
<meta name="keywords" content="hmtl5,udemy,learn code">
<meta name="author" content="Kostas Boukas">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<header id="main-header">
<h1 id="site-title">Best News Ever!</h1>
</header>
<section id="top-stories">
<article>
<div class="article-image" style="background:url(srf.jpg)"> </div>
<h3 class="h">Surfing all day</h3>
<p>All you need about surfing<a href="#" class="more-link">Read more</a></p>
</article>
<article>
<div class="article-image" style="background:url(srf1.jpg)"> </div>
<h3 class="h">Surfing is actually good for you</h3>
<p>All you need about surfing<a href="#" class="more-link">Read more</a></p>
</article>
<article >
<div class="article-image" id="kapout" style="background:url(srf2.jpg)"></div>
<h3 class="h">Learn surfing for you</h3>
<p>All you need about surfing<a href="#" class="more-link bolded-link">Read more</a></p>
</article>
</section>
</body>
</html>
伙计们,这是我的第一个问题,我希望能给你有用的信息。我连续有 3 篇文章,第三篇文章大于其他两篇文章,我该如何解决这个问题?我想要相同的大小. 如果有人给我答案,我将不胜感激!
【问题讨论】:
-
“大于其他两个”是什么意思?您是否检查过 css 以查看哪些规则会影响不匹配的文章?您没有包含相关的 css,因此我们没有太多工作要做(我的猜测是您有一些 css 要么针对第一篇文章,要么针对其他需要调整的 css)。
-
你能更清楚地定义你的问题吗?请看这里,因为这是您的第一个问题。您可以找到许多建议来帮助我们回答您。让你有更多可能得到答案*.com/help/how-to-ask
标签: html css padding margin stylesheet