html css样式的编写
1.先在html标签钱编写出样式集合;
<style type="text/css">
.important {color:red;}
</style>
2.然后在html标签上使用class承载样式的集合:
<h1 class="important">This heading is very important.</h1>
结果本例子会显示出字体是红色的:

1.先在html标签钱编写出样式集合;
<style type="text/css">
.important {color:red;}
</style>
2.然后在html标签上使用class承载样式的集合:
<h1 class="important">This heading is very important.</h1>
结果本例子会显示出字体是红色的:

2298

被折叠的 条评论
为什么被折叠?
