HTML <style>中一些常用的定义格式

 HTML <style>中一些常用的定义格式

CSS 参考手册

CSS 实例

 

<STYLE>

p            { line-height: 180%; font-family:微软雅黑; TEXT-INDENT: 2em }

.s1 { font-family:微软雅黑;}

.s2 {color:silver}

.s3 {font-size:24px}  size3(12pt磅), size4(14pt磅)

.s4 {font-size:150%}

.s5 {background-color: black;  color=white}

h2 {font-size:2.5em;}  /* 40px/16(em)=2.5em */

</STYLE>

<body bgcolor="#000000" >

<p>The font-family value of the text is the browser default font.</p>

<p class = "s1">The fon-family value of the text is "Arial"</p>

<p class = "s2">The fon-family value  of the text is "Tahoma"</</p>

<p class = "s3">The fon-family value  of the text is "Courer"</</p>

<p class = "s4">The fon-family value  of the text is "Verdana"</</p>

<p class = "s5">The fon-family value  of the text is "Book Antiqua"</</p>

</body>

 

样式一: body

{ margin: 0px;

padding: 0px;

margin-top:12px;

margin-left:1px;

width:auto;

width:94px;

height:36px;

 

float:left;

 

line-height: 18px;

line-height: 1.5em;

font-family: "Times New Roman", Times, serif;

font-family:"微软雅黑","黑体","宋体";

font-size: 14px;

font-size:100%;

color:#4e4e4e;

background: #f2e7ca

background-color:#E7EAEB;

 display:block;

text-decoration:none; }

 

css规定字体样式大全

字号:<font style="text-decoration:line-through">刪除線</font>刪除線

<font style="background-color:#ffddff">加上背景色</font>加上背景色

<font style="filter:fliph;height:10pt;">左右翻转效果</font>左右翻转效果

<font style="filter:flipv height:10pt;">上下翻转效果</font>上下翻转效果

<font style="font-size:9pt; filter:glow(color=#4a7ac9,strength=2); color:#ffffff; height:9pt">发光文字效果</font>发光文字效果

<font style="font-size:9pt; filter:glow(color=#ff0000,strength=2); color:#ffffff; height:9pt">发光文字效果</font>发光文字效果

<font style="font-size:9pt; filter:glow(color=#ff0080,strength=2); color:#ffffff; height:9pt">发光文字效果</font>发光文字效果

<font style="font-size:9pt; filter:glow(color=#ff8000,strength=2); color:#ffffff; height:9pt">发光文字效果</font>发光文字效果

<font style="font-size:9pt; filter:glow(color=#008080,strength=2); color:#ffffff; height:9pt">发光文字效果</font>发光文字效果

<font style="font-size:9pt; filter:glow(color=#0000ff,strength=2); color:#ffffff; height:9pt">发光文字效果</font>发光文字效果

<font style="font-size:9pt; filter:glow(color=#8000ff,strength=2); color:#ffffff; height:9pt">发光文字效果</font>发光文字效果

<font style="font-size:9pt; filter:glow(color=#000000,strength=2); color:#ffffff; height:9pt">发光文字效果</font>发光文字效果

<font style="font-size:12pt; filter:shadow(color=#4a7ac9,direction=135); height:19pt" face=verdana color=#ffffff>投射阴影文字效果</font>投射阴影文字效果

<font style="font-size:12pt; filter:shadow(color=#ff0000,direction=135); height:19pt" face=verdana color=#ffffff>投射阴影文字效果</font>投射阴影文字效果

<font style="font-size:12pt; filter:shadow(color=#ff0080,direction=135); height:19pt" face=verdana color=#ffffff>投射阴影文字效果</font>投射阴影文字效果

<font style="font-size:12pt; filter:shadow(color=#ff8000,direction=135); height:19pt" face=verdana color=#ffffff>投射阴影文字效果</font>投射阴影文字效果

<font style="font-size:12pt; filter:shadow(color=#008080,direction=135); height:19pt" face=verdana color=#ffffff>投射阴影文字效果</font>投射阴影文字效果

<font style="font-size:12pt; filter:shadow(color=#0000ff,direction=135); height:19pt" face=verdana color=#ffffff>投射阴影文字效果</font>投射阴影文字效果

<font style="font-size:12pt; filter:shadow(color=#8000ff,direction=135); height:19pt" face=verdana color=#ffffff>投射阴影文字效果</font>投射阴影文字效果

<font style="font-size:12pt; filter:shadow(color=#000000,direction=135); height:19pt" face=verdana color=#ffffff>投射阴影文字效果</font>投射阴影文字效果

<font style="filter:dropshadow(color=#cccccc,offx=3,offy=3); height=1px">阴影文字效果</font>阴影文字效果

<div style="width:80px; height:19px; background-color:#cccccc">

<font style="filter:dropshadow(color=#ffffff,offx=1,offy=1); height:15pt" color=#000000>&nbsp;雕刻文字效果</font></div>雕刻文字效果

<div style="font-size:14pt; filter:wave(freq=17,strength=3,lightstrength=1,phase=0); width:125px; line-height:15pt; font-family:verdana; height:20px" align=left> <font color=#ff8000><strong><b>扭曲文字效果</b></strong></font></div>扭曲文字效果

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值