CSS自己总结

一、CSS样式:<style type=“text/css”>...</style>

1、<em></em>本来就倾斜

2、font设置文字样式

3、text-description:修饰文字

属性:none/underline/overline/line-through/blink

        无/下划线/上划线/贯穿线(删除线)/会让文字闪烁

4、Letter-spacing:字符间距   word-spacing:字母间距

属性:normal/length(默认/长度单位)

5、文本缩进:text-indent:2em;可以为负值,缩进两个文字

6、垂直对齐方式:vertical-align:super/sub(上标/下标)


vertical-align:middle/top(居中(如上图)/居上)

二、CSS控制链接----伪类

a:link{color:#FF0000;text-decoration:none/underline/overline/line-through;}

自定义连接----伪类:

<style  type=”text/css”>

a.web:visited{vertical-align:center;text-decoration:underline;color:red;}

p.web:visited{vertical-align:center;text-decoration:underline;color:red;}

</style>

<body>

<a href=”http://www.baidu.com”  class=”web”>网页设计</a>

<p  class=”web”>网页设计

</body>

三、CSS自己总结:

1、p{color:red;font-size:12px;}

2、p:link{color:red;text-decoration:underline;}

3、p:web{color:red;text-decoration:underline;}

4、.web{

font-size:12px;

color:red;

}

5、#One{

font-size:12px;

color:red;

}

<p class=web id=One>我很棒!

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30211155/viewspace-2121769/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/30211155/viewspace-2121769/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值