字体外发光:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/htmlcharset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
body {
font:14px "Verdana"
background-color:#3366cc
}
.sizscolor {
position:absolute
padding:4px
filter:
Dropshadow(offx=1,offy=0,color=white)
Dropshadow(offx=0,offy=1,color=white)
Dropshadow(offx=0,offy=-1,color=white)
Dropshadow(offx=-1,offy=0,color=white)
}
</style>
</head>
<body>
<br>
<div class="sizscolor ">政策法规</div>
</body>
</html>
css中font字体的设置方法如下:
1.在css页面中,设置字体的颜色通过下面的代码:
2.字体的color值,一般都是使用#加16进制的颜色值来表示。也有一些编译器支持直接使用颜色的英文单词来表示。如下图:
3.color是颜色的意思,color用来设置一个标签的前景色,表现出来也就是元素文本的颜色。css还可以设置字体的其他属性,如font-familay可以设置字体的类型,font-size可以设置字体的大小等。
扩展资料:
CSS 能够对网页中元素位置的排版进行像素级精确控制,支持几乎所有的字体字号样式,拥有对网页对象和模型样式编辑的能力。
参考资料:CSS-百度百科