W3Schools 在线编辑工具(TIY) V3.0
编辑的代码:
运行代码 »
©
w3s.com.cn
运行结果窗口大小:
300 x 150
<
html
>
<
head
>
<
style
type
="text/css"
>
h1.intro
{
color
:
blue
;
text-align
:
center
;
}
.important
{
background-color
:
yellow
;
}
<
/style
>
<
/head
>
<
body
>
<
h1
class
="intro important"
>
Header 1
<
/h1
>
<
p
>
A paragraph.
<
/p
>
<
/body
>
<
/html
>
<html> <head> <style type="text/css"> h1.intro { color:blue; text-align:center; } .important {background-color:yellow;} </style> </head> <body> <h1 class="intro important">Header 1</h1> <p>A paragraph.</p> </body> </html>