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/
- 点赞
- 收藏
- 分享
- 文章举报
- .NET2005中怎样同时禁用主题中的.skin和.css(自己总结的方法)
- css星级效果总结 取别人另加入自己的一些东东
- 自己总结的html css知识点
- 自己总结的 css div居中的方法
- 自己总结的CSS以及JS各种库的在线CDN引用地址,链接可以直接复制(不定期更新)
- css中自己的一点总结。
- 自己总结的一些CSS调试的经验!
- 自己总结的html+css试题
- CSS知识精化集全,每天更新一点点,自己总结。
- 移动web开发------公用css----自己总结
- 自己总结前端web知识学习——太多太多(html/css/js/php)
- 常用CSS缩写语法总结
- 学习css的总结
- css总结
- XHTML下css+div布局总结 超强推荐
- 正则表达式使用总结--记录项目中遇到的自己未解决的正则
- 非常漂亮的css星级效果总结第1/2页
- 根据自己的经历总结一些安卓工程师的面试经验和题目
- css的特殊性笔记总结
- 我给女朋友讲编程总结建议篇,怎么学习html和css