html标题问题在哪里放置它

时间:2015-09-27 19:26:27

标签: html

我想让我的html网站页面拥有"最美丽的定理?"右侧部分。但是,我无法弄清楚如何做到这一点。现在它只是在我所有其他标题下出现,就像正常一样,但我希望它在页面的右侧作为一个单独的列。如果你能帮助我那会很棒。谢谢! 这是我现在的编码:

<!DOCTYPE html>
<html lang="en">
<!-- Math High home page 
McLain-Graning MaKayla, CSIS 140, Fall 2015
-->
<head>
<meta charset="utf-8" />
<title>Math High</title>
<link href="css/MathHighStyles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<header>
<img src="images_MathHigh/mhlogo.jpg" alt="Math High"/>
<h2>Leonhard Euler (1707-1783)</h2>
</header>
<section>
<article>
<p>
The greatest mathematician of the eighteenth century, 
<strong>Leonhard Euler</strong> was born in Basel, Switzerland. There, 
he studied under another giant of mathematics, <strong>Jean 
Bernoulli</strong>. In 1731 Euler became a professor of physics 
and mathematics at St. Petersburg Academy of Sciences. 
Euler was the most prolific mathematician of all time, 
publishing over 800 different books and papers. His 
influence was felt in physics and astronomy as well.
</p>
</article>
<p>
He is perhaps best known for his research into 
mathematical analysis. Euler's work, 
Introductio in analysin infinitorum (1748), 
remained a standard textbook in the field for 
well over a century. For the princess of Anhalt-Dessau he wrote 
Lettres a une princesse d'Allemagne (1768-1772), 
giving a clear non-technical outline of the main 
physical theories of the time.
</p>
<p>
One can hardly write a mathematical equation without 
copying Euler. Notations still in use today, such 
as e and pi, were introduced 
in Euler's writings. Leonhard Euler died in 1783, 
leaving behind a legacy perhaps unmatched, and 
certainly unsurpassed, in the annals of mathematics.
</p>
</section>
<aside>
<h1>The Most Beautiful Theorem?</h1>
<p>Euler's Equation:</p>
<p>cos(x) + i*sin(x) = e to the power (i*x)</p>
<p>demonstrates the relationship between algebra, 
complex analysis, and trigonometry. From this 
equation, it's easy to derive the identity:
</p>
<p>e to the power (pi*i) + 1 = 0</p>
<p>which relates the fundamental constants: 
0, 1, pi, e, and i in a single beautiful and 
elegant statement. A poll of readers 
conducted by The Mathematical Intelligencer
magazine named Euler's Identity as the 
most beautiful theorem in the history of 
mathematics.</p>
<p>Math High: A Site for Educators and Researchers</p>
</aside>
</body>
</html>

1 个答案:

答案 0 :(得分:0)

为h1元素指定id或类名,并添加CSS样式以使标题浮动。 见http://www.w3schools.com/css/css_float.asp