- 15
- 0
- 约 18页
- 2017-08-25 发布于河南
- 举报
综合例题
1.
html
head
style type=text/css
body{background-color: yellow}
h1{background-color: #00ff00}
h2{background-color: transparent}
p{background-color: rgb(250,0,255)}
p.no2 {background-color: gray; padding: 20px;}
/style
/head
body
h1这是标题 1/h1
h2这是标题 2/h2
p这是段落/p
p class=no2段落设置了内边距。/p
/body
/html
2.
html
head
style type=text/css
a:link {color: #FF0000} /* 未被访问的链接 红色 */
a:visited {color: #00FF00} /* 已被访问过的链接 绿色 */
a:hover {color: #FFCC00} /* 鼠标悬浮在上的链接 橙色 */
a:active {color: #0000FF} /* 鼠标点中激活链接 蓝色 */
/style
/head
body
a href = 新浪网站/a
/body
/html
3.
html
head
style type=text/css
span
原创力文档

文档评论(0)