随笔分类 - CSS3
摘要:.sidebar a { display: block; line-height: 40px;}.sidebar .featured,.sidebar .sales { background: url(sidebar.png) no-repeat; padding-left: 50px;}....
阅读全文
posted @ 2014-08-13 05:26
Zhentiw
摘要:Refactor the spacing between <header>, <article>, and <aside> so that elements will have a 20px margin above and below, regardless of their order on t
阅读全文
posted @ 2014-08-11 04:43
Zhentiw
摘要:Refactor theparagraphproperties to use shorthand syntax.p { margin-top: 0; margin-right: 0; margin-bottom: 10px; margin-left: 0; font-family: tah...
阅读全文
posted @ 2014-08-11 04:19
Zhentiw
摘要:如果在一个容器中的子元素使用了position:absolute, 那么他可能会跑出父元素的框架范围。 如果想限定子元素在付元素的框架范围,可以在父元素上加position:relative; 对于一个父元素,比如bigWrapper, mainHeader, mainFooter 可以加上posi
阅读全文
posted @ 2014-08-08 15:25
Zhentiw
摘要:<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="index.css" /> </head> <div class="db group"> <!-- 在含有float的容器中家group class--> <div id="l" s
阅读全文
posted @ 2014-08-08 03:34
Zhentiw
摘要:Border radius: border-radius: Box shadow: box-shadow: Example 1: multi shadows.box{ box-shadow: 1px 1px #000, insert 1px 1px 2px blue; ...
阅读全文
posted @ 2014-08-06 17:57
Zhentiw