CSS3入门【四】 文本效果

实例

1.  带阴影的文本(text-shadow)

       HTML代码:

<h1 id="aa">二十四桥明月夜,玉人何处教吹箫</h1>
       CSS代码:

#aa{
	text-shadow: 10px 10px 10px #0000FF;
}
       效果如下:

2.  CSS3新增文本属性

hanging-punctuation: none|first|last|allow-end|force-end;
描述
none不在文本整行的开头还是结尾的行框之外放置标签符号
frist标点附着在首行开始边缘之外
last标点附着在首行结尾边缘之外
allow-end 
force-end 
punctuation-trim: none|start|end|allow-end|adjacent;

描述
none不修剪开启或闭合标点符号
start修剪每行结尾的开启标点符号
end修剪每行结尾的闭合标点符号
allow-end 
adjacent 
text-emphasis: text-emphasis-style text-emphasis-color;
描述
text-emphasis-style向元素的文本应用重点标记
text-emphasis-color定义重点标记前景色
text-justify: auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|trim;
text-outline: thickness blur color;
text-overflow: clip|ellipsis|string;
text-shadow: h-shadow v-shadow blur color;
text-wrap: normal|none|unrestricted|suppress;
word-break: normal|break-all|keep-all;
word-wrap: normal|break-word;
 

                                                                                                                  ——详情参见http://www.w3school.com








     


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值