W3Schools 在线编辑工具(TIY) V3.0
编辑的代码:
运行代码 »
©
w3s.com.cn
运行结果窗口大小:
300 x 150
<
html
>
<
head
>
<
style
type
="text/css"
>
h1
{
text-align
:
center
}
h2
{
text-align
:
left
}
h3
{
text-align
:
right
}
<
/style
>
<
/head
>
<
body
>
<
h1
>
这是标题 1
<
/h1
>
<
h2
>
这是标题 2
<
/h2
>
<
h3
>
这是标题 3
<
/h3
>
<
/body
>
<
/html
>
<html> <head> <style type="text/css"> h1 {text-align: center} h2 {text-align: left} h3 {text-align: right} </style> </head> <body> <h1>这是标题 1</h1> <h2>这是标题 2</h2> <h3>这是标题 3</h3> </body> </html>