会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
eping的网络日志
博客园
首页
新随笔
联系
订阅
管理
导入外部CSS方法
Code
第一种方式
<
link
rel
="stylesheet"
type
="text/css"
href
="3-1.css"
/>
第二种方式
<
style
type
="text/css"
>
@import"3-1.css";
</
style
>
内部样式表
<
style
type
="text/css"
>
h1,h2,h3,h4,p
{
color
:
#F00
;
font-family
:
"Comic Sans MS", cursive
;
}
</
style
>
内嵌样式表
<
p
style
="background-color:#0FF; margin-left:4px; background-repeat:repeat-x"
>
内嵌入CSS
</
p
>
Code
CSS
1
、嵌入样式
[
1
]、
<
style type
=
"
text/css
"
>
</
style
>
[
2
]、
<
style type
=
"
text/css
"
>
@import url(
"
css/layout.css
"
);
</
style
>
2
、行内样式
<
a href
=
"
#
"
style
=
"
color:#C00
"
>
this
</
a
>
3
、链接样式
<
link href
=
"
css/myjob.css
"
rel
=
"
stylesheet
"
type
=
"
text/css
"
/>
posted @
2009-09-14 16:57
eping
阅读(
406
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
公告