案例:html案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style>
5
.cities {
6
    background-color:black;
7
    color:white;
8
    margin:20px;
9
    padding:20px;
10
}   
11
</style>
12
</head>
13
14
<body>
15
16
<div class="cities">
17
<h2>London</h2>
18
19
<p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
20
21
<p>Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.</p>
22
</div> 
23
24
<div class="cities">
25
<h2>Paris</h2>
26
27
<p>Paris is the capital and most populous city of France.</p>
28
29
<p>Situated on the Seine River, it is at the heart of the 蝜e-de-France region, also known as the r間ion parisienne.</p>
30
31
<p>Within its metropolitan area is one of the largest population centers in Europe, with over 12 million inhabitants.</p>
32
</div>
33
34
<div class="cities">
35
<h2>Tokyo</h2>
36
37
<p>Tokyo is the capital of Japan, the center of the Greater Tokyo Area, and the most populous metropolitan area in the world.</p>
38
39
<p>It is the seat of the Japanese government and the Imperial Palace, and the home of the Japanese Imperial Family.</p>
40
41
<p>The Tokyo prefecture is part of the world's most populous metropolitan area with 38 million people and the world's largest urban economy.</p>
42
</div>
43
44
</body>
45
</html>
46