收藏 分享(赏)

learnCSS.doc

上传人:hskm5268 文档编号:6620797 上传时间:2019-04-18 格式:DOC 页数:4 大小:233.50KB
下载 相关 举报
learnCSS.doc_第1页
第1页 / 共4页
learnCSS.doc_第2页
第2页 / 共4页
learnCSS.doc_第3页
第3页 / 共4页
learnCSS.doc_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

1、The text-decoration property is used to set or remove decorations from text.The text-decoration property is mostly used to remove underlines from links for design purposes:a text-decoration:none;h1 text-decoration:overline;h2 text-decoration:line-through;h3 text-decoration:underline;h4 text-decorati

2、on:blink;Styling lists (useful)table, th, tdborder: 1px solid black;Notice that the table in the example above has double borders. This is because both the table and the th/td elements have separate borders.To display a single border for the table, use the border-collapse property.To control the spa

3、ce between the border and content in a table, use the padding property on td and th elements:tdpadding:15px;Table ColorThe example below specifies the color of the borders, and the text and background color of th elements:Example table, td, thborder:1px solid green;thbackground-color:green;color:whi

4、te;CSS border stylePaddingThe padding clears an area around the content (inside the border) of an element. The padding is affected by the background color of the element.lidisplay:inline;Fixed PositioningAn element with fixed position is positioned relative to the browser window.It will not move eve

5、n if the window is scrolled:p.pos_fixedposition:fixed;top:30px;right:5px;With absolute positioning, an element can be placed anywhere on a page. The heading below is placed 100px from the left of the page and 150px from the top of the page.Overlapping ElementsWhen elements are positioned outside the

6、 normal flow, they can overlap other elements.The z-index property specifies the stack order of an element (which element should be placed in front of, or behind, the others).An element can have a positive or negative stack order:imgposition:absolute;left:0px;top:0px;z-index:-1;CSS Float (important)

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报