已阅读5页,还剩9页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1. 内边距与外边距UlMargin:0;Padding:0;2. 使用图片作为列表图标UlMargin:0;Padding:0;Width:200px;List-style-image:url(images/list.gif);Line-height:150%;3. 以背景图片作为项目列表图标UlList-style-type:none;LiBackground:url(images/list.gif)no-repeatleft center;Padding:00025px;4. 内联列表UlList-style-type:disc;LiDisplay:inline;这里的display属性是块级值的设置,定义是否要成为块.Inline是是内联,block是区块.5. 背景图片和内联列表UlList-style-type:none;LiDisplay:inline;Backgroundurl(images/list.gif)no-repeatleft center;Margin:00010px;Padding:00015px;6.垂直导航栏DrubjsMenuBeerSpiritsColaLemonadeTeaCoffeeUlList-style-type:none;Margin:5px;Padding:2pxWidth:160px;Font-size:12px;LiBackground:#ddd;Margin:0;Padding:2px10px;Border-left:1pxsolid #fff;Border-top:1pxsolid#fff;Border-right:1pxsolid #666;Border-bottom:1pxsolid #aaa;7.创建垂直翻转的列表ulmargin:0;padding:0;list-style-type: none;UlaDisplay:block;Width:200px;Height:40px;/*39px*/Line-height:40px;/*39px*/Color:#000;Text-decoration:none;Background:#94b8E9url(images/pixy-rollover.gif)no-repeatleft center;/*left bottom*/Text-indent:50px;a:hoverbackground-position:rightbottom;8.创建水平导航条ulMargin:0;Padding:02em;List-style:none;line-height: 2.1em;Width:720px;Background:#faa819url(images/mainNavBg.gif)repeat-x;ulli float:left;ulacolor:#fff;padding:010px;background:url(images/divider.gif)repeat-yleft top;text-decoration: none;第24章CSS构造超链接1.给链接加上边框A:linkColor:#f00;Text-decoration:none;Border-bottom:1pxdashed#333;Line-height:150%;2.在文章段落中加上超级链接A:linkColor:#f00;Text-decoration:none;Border:1pxsolid#333;Background:#ccc;Padding:2px;Line-height:150%;3. 用背景图象添加记号A:linkColor:#f00;Padding:015px00;Background:url(images/arrow.gif)no-repeatrightcenter;A:visitedColor:#999;Padding:015px00;Background:url(images/checkmark.gif)no-repeatrightcenter;4.利用派生来影响链接Pa:link,pa:visited,pa:hover,pa:activeColor:#f00;UlaColor:#000;5.利用图片作为下划线A:link,a:visitedColor:#666;Text-decoration:none;Background:url(images/underline1.gif)repeat-xleft bottom;A:hover,a:activeBackground:url(images/underline1-hover.gif);6.突出显示不同类型的链接.externalBackground:url(images/externalLink.gif)no-repeatrighttop;Padding-right:10px;7.使用属性选择器来做链接ahref=http:background:url(images/externalLink.gif)no-repeatrighttop;padding-right:10px;ahref=mailto:background:url(images/email.png)no-repeatrighttop;padding-right:13px;8.创建按钮和翻转aDisplay:block;Width:6em;Padding:02.em;Line-height:1.4;Background-color:#94b8e9;Border:1pxsolidblack;Color:#000;Text-decoration:none;Text-align:center;a:hoverbackground-color:#369;color:#fff;9.具有图象的翻转aDisplay:block;Width:200px;Height:40px;Line-height:40px;Background-color:#94b8e9;Color:#000;Text-decoration:none;Text-indent:50px;Background:#94b8eaurl(images/button.gif)no-repeatleft top;A:hoverBackground:#369url(images/button_over.gif)no-repeatleft top;Color:#fff;9.以访问链接样式AndyBuddsBlogographyStuffandNonsenseHicksDesignClagnutHTMLDogAdactioAllInTheHeadMarkBoultonIanLloydullist-style:none;limargin:5px0;liadisplay:block;width:300px;height:30px;line-height: 30px;color:#000;text-decoration: none;background:#94B8E9url(images/visited.gif)no-repeatleft top;text-indent: 10px;lia:visitedbackground-position:righttop;10.纯css工具提示Andy Budd (This websiterocks)is awebdeveloperbasedin BrightonEngland.a.tooltip position:relative;a.tooltip spandisplay:none;a.tooltip:hoverfont-size:100%;/* Fixesbugin IE5.x/Win*/a.tooltip:hoverspandisplay:block;position:absolute;top:1em;left:2em;padding:0.2em0.6em;border:1pxsolid#996633;background-color:#FFFF66;color:#000;第25章CSS构造表格1. 简单表格table width:auto;border-collapse:collapse;margin-left:20px;border:1pxsolid black;td,th width:50px;border:1pxsolid black;padding:5px;background:gold;text-align:center;vertical-align:middle;text-indent:5px;12345678910111212891011122.行组和列组table.example1theadbackground:orange;color:black;table.example1tbodybackground:gold;color:black;table.example1tfootbackground:firebrick;color:white;*.col1background:wheat;*.col2background:gold;*.col3background:orange;*.col4background:tomato;*.col5background:firebrick;*.col6background:black;color:white;12345678910111213141516171812891011123.表格选择符1234567891011121314151617184.分隔的边框tableborder-collapse:separate;td,thwidth:50px;padding:5px;text-align:center;vertical-align:middle;background:gold;text-indent:5px;.boxed-tableborder:1pxsolidblack;.boxed-cellstdborder:1pxsolidblack;.boxed-cellstd.xborder:none;封装的表格12-378 11封装的单元格12-378 11封装的单元格和表格12-378 115.重复的边框tableborder-collapse:collapse;td,thwidth:50px;padding:5px;text-align:center;vertical-align:middle;background:gold;text-indent:5px;.boxed-tableborder:1pxsolidblack;.boxed-cellstdborder:1pxsolidblack;.boxed-cellstd.xborder:none;封装的表格12-378 11封装的单元格12-378 11封装的单元格和表格12-378 116.隐藏和删除单元格、行、列tableborder-collapse:separate;td,thwidth:50px;padding:5px;text-align:center;vertical-align:middle;background:gold;text-indent:5px;border:1pxsolidblack;.hiddenvisibility:hidden;.deletedisplay:none;123456787.垂直对齐数据.xvertical-align:middle;第26章CSS构造表单1.表单标签的使用姓名: 2.去掉默认的表单间隔FormMargin:0;Padding:0;3.给文本框添加漂亮的边框Input,textareaBorder:3pxdouble#333;4.给下拉菜单设置背景色selectbackground:red;5.给文本区域添加滚动条textareaSCROLLBAR-FACE-COLOR:#333;SCROLLBAR-HIGHLIGHT-COLOR:#666;SCROLLBAR-SHADOW-COLOR:#333;SCROLLBAR-3DLIGHT-COLOR:#999;SCROLLBAR-ARROW-COLOR:#999;SCROLLBAR-TRACK-COLOR:#000;SCROLLBAR-DARKSHADOW-COLOR:#000;6.表单外边框设置fieldsetlegendFieldsetMargin:0010px0;Padding:5px;Border:1pxsolid #333;LegendBackground-color:#ddd;Margin:0;Padding:5px;Border-style:solid;Border-width:1px;Border-color:#fff#aaa#666#fff;FieldsetBackground:#ddd;7.结构化表单布局登陆信息用户 名 :密 码 :确 认 密 码 :个人信息昵 称 :电子邮 件 : #regFormfieldsetpadding:020px10px;border:0;border-top:1px#d0d0bfsolid;#regFormlegendpadding:010px;font-weight:bold;#regForm.dataAreapadding:2
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年氟铝酸钙锂晶体(LICAALF)合作协议书
- 变电站生产安全操作规程(标准版)
- 宾馆公共场所卫生管理制度5篇
- 高考理科数学第一轮专题计数原理概率与统计测试题参考答案
- 病理学测试题库及答案
- 国家开放大学电大专科《病理学与病理生理学》2026年期末试题及答案
- 2025年涨紧轮合作协议书
- 自动化数据验证框架
- 汽车维修服务操作规范与流程
- 房地产开发与销售流程指南
- (2026年)中华护理学会团体标准2024针刺伤预防与处理课件
- 严厉的主奴协议书
- 2026年区块链基础培训课件与可信数据应用场景指南
- 《多元统计分析》(第6版)课件 第1章 多元正态分布及其抽样分布
- 2025年10月自考15040习概论试题及答案
- 不良事件上报流程及处理
- 妇产科护士长工作总结范文
- 娱乐场所合作协议书合同
- 派出所安全培训
- 物业会计知识培训内容
- 轧钢工艺培训课件模板
评论
0/150
提交评论