CSS
文章平均质量分 82
_一克拉的梦想_
Dive into HTML5 & CSS3
展开
-
Keep your footer show at the bottom of the page
如何使网页的footer显示在页面最下方。两种情况要kao原创 2014-07-15 15:10:02 · 639 阅读 · 0 评论 -
CSS Display
Display and VisibilityHiding an element两种方法实现元素的隐藏:h1.hidden {display:none;}h2.hidden {visibility:hidden;}区别:display:none it will not take up any space. The element will be hidden, and the原创 2015-05-18 17:18:05 · 385 阅读 · 0 评论 -
RWD Images & Videos
Responsive Web Design - Images1. set width property to 100%img { width: 100%; height: auto;}这样图片就变为响应式的了,可以放大或缩小。注意:图片可能被放大到超过原始尺寸。更好的解决办法,在许多情况下是使用 max-width.2. set max-width propert原创 2015-06-01 14:56:50 · 634 阅读 · 0 评论 -
CSS List
ListWith CSS, lists can be styled further, and images can be used as the list item marker.List item markerThe type of list item marker is specified with the list-style-type property原创 2015-04-28 11:21:24 · 421 阅读 · 0 评论 -
CSS Attribute Selectors
Attribute Selector可以对那些拥有特殊属性的HTML元素进行个性化设置。Note: IE7 and IE8 support attribute selectors only if a !DOCTYPE is specified.[attribute] SelectorThe[attribute]selector 选择凡是拥有这个 attrib原创 2014-04-28 12:10:16 · 774 阅读 · 0 评论 -
CSS Float
http://www.w3schools.com/cssref/pr_class_clear.aspclear:both;原创 2014-04-26 20:05:48 · 537 阅读 · 0 评论 -
CSS3 Transform & Transition & Animation
CSS3 TransformsRelated 2D transform methods:translate() 移动: the element moves from its current position, depending on the parameters given for theleft(X-axis) and the top (Y-axis) positionrota原创 2015-05-26 16:26:01 · 535 阅读 · 0 评论 -
CSS Position
DisplayHiding an element原创 2014-04-26 17:11:16 · 706 阅读 · 0 评论 -
CSS Background
该性质是用于定义一个元素背景的效果。Background-color顾名思义,我们可以对每一个HTML元素设定它的背景色,常用取值:color,transparentThe background of an element is the total size of the element,includingpadding and border (but not the原创 2014-04-25 22:59:02 · 553 阅读 · 0 评论 -
CSS3 Borders & Backgrounds & Colors
CSS Colors 可以有三种基本表示方法:Predefined Color name 预定义颜色名称表示法 : 17 standard colors are: aqua 水绿色, black, blue, fuchsia 紫红色, gray, green, lime 绿黄色, maroon 褐红色/栗色, navy 藏青色, olive 黄褐色/橄榄色, orange, pur原创 2014-04-03 10:29:49 · 560 阅读 · 0 评论 -
CSS Border & Padding & Margin
BorderBorder styleThe border-style property specifies what kind of border to display.原创 2014-04-15 16:19:27 · 752 阅读 · 0 评论 -
CSS Box Model & Outlines & Dimension
OutlineAn outline is a line that is drawn around elements (outside the borders) to make the element "stand out".CSS轮廓The outline is not a part of an element's dimensions; the element's t原创 2014-04-26 16:18:16 · 660 阅读 · 0 评论 -
CSS Pseudo-classes & Pseudo-elements
Pseudo-classesused to add special effects to some selectors. 用于给一些选择器原创 2014-04-28 00:03:50 · 2401 阅读 · 0 评论 -
<html> vs. <body> element in css
SummaryThe html and body elements are distinct block-level entities, in a parent/child relationship.The html element's height and width are controlled by the browser window.It is the html elemen翻译 2014-07-15 15:50:44 · 478 阅读 · 0 评论 -
CSS Selector Performance has changed! (For the better)
可能有些人看过MDN上面 Writing efficient CSS (作者:David Hyatt)这篇文章,不过网站也标注了,这是2000年写的,建议参考一下本文所翻译的文章(2011年12月29日,作者:Nicole Sullivan)关于CSS选择器优化。本文地址:点击打开链接像David Hyatt的书写高效CSS等优秀的文章,帮助开发者适应了一个基本的选择器匹配大背景。翻译 2015-03-02 14:03:44 · 557 阅读 · 0 评论 -
CSS Units
CSS has several different units for expressing a length. Many CSS properties take "length" values, such as width, margin, padding, font-size, border-width, etc. CSS 有不同的单位用来描述长度A whitespace cann原创 2015-02-04 15:20:04 · 472 阅读 · 0 评论 -
Media Queries
W3C Recommendation Media Queries本文为文档阅读笔记。Media-specific style sheets are supported by several user agents. The most commonly used feature is to distinguish between ‘screen’ and ‘print’.指定媒体原创 2015-04-15 14:36:57 · 446 阅读 · 0 评论 -
CSS Text
TextThe default color for a page is defined in the body selector.页面文字的默认yanNote: For W3C compliant CSS: If you define the color property, you must also define the background-color property.原创 2014-04-15 10:11:12 · 846 阅读 · 0 评论 -
CSS Font
Font familiesthere are two types of font family names:generic family 通用字体系统 - a group of font families with a similar look (like "Serif" or "Monospace") font family 特定字体系统- a specific font f原创 2014-04-25 12:25:48 · 607 阅读 · 0 评论 -
CSS Links & Tables
Links can be styled differently depending on what state they are in.The four links states are:a:link - a normal, unvisited linka:visited - a link the user has visiteda:hover - a link whe原创 2014-04-26 00:50:47 · 512 阅读 · 0 评论 -
CSS Combinator
Combinator把基础选择器组合起来使用。There are four different combinators in CSS3:descendant selector 后代选择器child selector 自选择器adjacent sibling selector 相邻兄弟选择器general sibling selector 一般同级选择器Desce原创 2015-03-02 16:20:53 · 732 阅读 · 0 评论 -
CSS Basic
What is CSS?CSS stands for Cascading Style Sheets (层叠样式表)define how to display HTML elements (定义如何显示HTML元素). HTML was never intended to contain tags for formatting a document, but to define the原创 2014-04-02 20:13:03 · 594 阅读 · 0 评论