案例: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
</body>
25
</html>
26