doyoe / css-handbook Goto Github PK
View Code? Open in Web Editor NEWCSS参考手册
Home Page: http://css.doyoe.com
License: Apache License 2.0
CSS参考手册
Home Page: http://css.doyoe.com
License: Apache License 2.0
css hack中条件hack里面的代码在IE11里面会显示“您正在使用 非IE浏览器 ”,其他的没测!
IE9+仅支持使用 vm 代替vmin的表述不对
该问题仅仅存在于IE9,IE10并不存在,所以该去掉文案中的+
\values\length\vmin.htm
首先感谢大神的辛勤劳作。
如题,为何一直没有将CSS3 3D变形加入手册呢?
<li id="support2">IE6.0-9.0使用私有滤镜来实现该效果: <a href="http://msdn.microsoft.com/en-us/library/ms532997(VS.85,loband).aspx" rel="external" class="external" target="_blank">progid:DXImageTransform.Microsoft.Gradient()</a></li>
请删除此行,IE并不能使用滤镜来兼容此属性
没有-ms-box-sizing的用法。
另外我增补了padding-box的内容
http://ridge/css-book/properties/user-interface/box-sizing.htm
<ol class="support-info">
<li>IE9下,使用在background-position会使浏览器崩溃。</li>
</ol>
伪类选择的时候, 怎么没有 a:eq(1) 这样的写法?难道这不是标准方法,而仅仅只是 jQuery 的用法么?
我在w3c官网上看到了这个属性,但是手册上没有一点介绍
http://www.w3.org/TR/css3-grid-layout/
list-style:[ list-style-image ] || [ list-style-position ] || [ list-style-type ] 顺序应该是
list-style:[ list-style-type ] || [ list-style-position ] || [ list-style-image ]
counter()
counters()
attr()
这三个属性的链接都错了。
http://www.css88.com/book/css/properties/font/font-weight.htm
我是在此修改了示例代码,已经删除了部分内容想尝试不同效果,但点击运行之后还是本来的代码的样子;也就是说,运行没有用
原文:
非替代(non-Replaced)行内元素可以使用该属性设置左、右两边的内补丁;若要设置上、下两边的内补丁,必须先使该对象表现为块级或内联块级。
标准里没说啊,是否误认为是margin的vertical方向无效
http://www.w3.org/TR/CSS21/box.html#padding-properties
properties/layout/rotation-point.htm
properties/layout/rotation.htm
properties/speech/index.htm
\properties\background\background-origin.htm
\properties\background\background-clip.htm
这两个文件中,少写了一个空格
<td class="support"rowspan="3">3.0+</td>
应该为:
<td class="support" rowspan="3">3.0+</td>
页面上:
取值:
row:
横向从左到右排列(左对齐),默认的排列方式。
row-reverse:
反转横向排列(右对齐,从后往前排,最后一项排在最前面。
column:
纵向排列。
row-reverse:
反转纵向排列,从后往前排,最后一项排在最上面。
正确:
取值:
row:
横向从左到右排列(左对齐),默认的排列方式。
row-reverse:
反转横向排列(右对齐,从后往前排,最后一项排在最前面。
column:
纵向排列。
column-reverse:
反转纵向排列,从后往前排,最后一项排在最上面。
http://gucong3000.github.io/css-book/values/image/linear-gradient().htm
此页面有几个链接到404
angle:用角度值指定渐变的方向(或角度)。angle链接到404
length:用长度值指定起止色位置。不允许负值 length链接到404
percentage:用百分比指定起止色位置。percentage链接到404
http://gucong3000.github.io/css-book/values/image/radial-gradient().htm
http://gucong3000.github.io/css-book/values/image/repeating-linear-gradient().htm
http://gucong3000.github.io/css-book/values/image/repeating-radial-gradient().htm
percentage①:用百分比指定径向渐变圆心的横坐标值。可以为负值。percentage链接到404
length①:用长度值指定径向渐变圆心的横坐标值。可以为负值。 length链接到404
本页面涉及到这几个页面都是404
这几个问题修复, 应该就都可以了, 所以, 不在一一列举
http://gucong3000.github.io/css-book/properties/border/box-shadow.htm
这个页面中有一个 参阅text-shadow属性 text-shadow 有链接, 但是点击之后404
这里是正确的写法
http://ridge/css-book/properties/border/border-image-repeat.htm
对应的脚本特性为borderImageRepeat。
根据w3c描述,和实际测试,vertical-align的继承性应该为:无
http://css.doyoe.com/hack/properties.htm
此页所描述的webkit内核的hack,Chrome27或Safari打开demo正常,Chrome37打开demo,未识别hack。
clip:
当内联内容移除块容器时,将溢出部分裁切掉。
ellipsis:
当内联内容移除块容器时,将溢出部分替换为(...)。
“移除”是什么鬼,是表达超出的意思么?
现在想添加点东西,感觉首先得熟悉html
结构,是否考虑统一文档格式,比如用md
文档,然后约定某些key
&&value
,然后用nodejs
来跑整个网站,这样上手略快吧,比如:
# Properties Level Hack
## dir
hack
## description
css属性级Hack
## example
xxxxxxx
当然配置也可以走package.json
格式...只是想法~
Properties -> background -> background-position
说明中的第二条:
给偏移量添加关键字时只有边界left-right-top-bottom,而不能是center。
标准中说的是
If three or four values are given, then each or represents an offset and must be preceded by a keyword, which specifies from which edge the offset is given.
edge应该不包括center。
\css-handbook\properties\media-queries\grid.htm:
105: 5.1。7
/introduction/change-list.htm
此页面中的<a href="../values/content/counters.htm">counters</a>
在mac 中 切到 utf-8 时,页面显示正确目录乱码,切到GB2312/GBK时 目录正确,页面乱码。
Firefox 32+
Safari 6.1+
已获得支持
图就不截了,应该是字符集的编码的问题。
我用read CHM 打开的
如题,线上版有无可能加上搜索功能?这样查找属性更方便。
http://css.doyoe.com/values/length/px.htm 与 http://css.doyoe.com/values/length/length.htm 页面对于Pixels长度单位的定义相互矛盾: 在length页面px是显示在绝对长度单位内, px页面显示“相对长度单位。像素(Pixels)。 ”
<ol class="support-info">
<li id="support1">z-index负值是CSS2.1中定义的,在CSS2中是不被支持的;</li>
</ol>
这里估计是错误的copy了代码,还是应该使用原来的代码。
w3cschool上的值有 inherit(规定应从父元素继承 box-sizing 属性的值),参考手册说没有继承性,求解惑。
文件第二行写错啦
<html lang="zh-cmn-Hansn">
应该是:
<html lang="zh-cmn-Hans">
建议用编辑器批量替换所有页面的此行,不要手写
手写可能出现上述错误
http://css.doyoe.com/properties/multi-column/columns.htm 此页面的兼容性中出现橙色是何解....还有类似页面
Multi-column 此下面的属性页面全都出现橙色, 橙色有什么特殊意义吗?
非常感谢!
请问可以出个kindle的版本吗?:)
在兼容性那个位置, 上面注明绿色是兼容, 粉红色的部分兼容, 红色为不兼容, 但是, 那个表格上, 背景全为白色
http://css.doyoe.com/properties/transform/transform.htm 就是这个页面
list-style 语法的描述 list-style:[ list-style-image ] || [ list-style-position ] || [ list-style-type ] 后面的顺序是不是错了?
RT
/images/文件夹下俩图片文件,图上日期写成了2014.0.26。已在我的分支下修正
发现CSS3有许多新的规范得到浏览器的支持,如:supports、filter等。有无计划加入手册呢?
http://caniuse.com/#search=filter
http://caniuse.com/#search=supports
很遗憾楼主删掉了gulp脚本,我这边保留着,今天合并您的分支后跑gulp发现有死链接:
发现死链接(文件不存在): properties/text/text-size-adjust.htm
发现死链接(文件不存在): properties/only-webkit/tap-highlight-color.htm
发现死文件(没有链接指向此文件): properties\speech\index.htm
1 error found in /properties/border/border-bottom-color.htm[L134:C4] Tag must be paired, Missing: [ </li> ] (tag-pair)</ol>
1 error found in /properties/border/border-left-color.htm[L134:C4] Tag must be paired, Missing: [ </li> ] (tag-pair)</ol>
1 error found in /properties/border/border-right-color.htm[L134:C4] Tag must be paired, Missing: [ </li> ] (tag-pair)</ol>
1 error found in /properties/border/border-top-color.htm[L134:C4] Tag must be paired, Missing: [ </li> ] (tag-pair)</ol>2 errors found in /rules/@media.htm[L81:C1] Special characters must be escaped : [ < ]. (spec-char-escape)<?xml-stylesheet media="screen and (width:800px)" rel="stylesheet" href="example.css" ?></xmp></code></blockquote>[L81:C88] Special characters must be escaped : [ > ]. (spec-char-escape)<?xml-stylesheet media="screen and (width:800px)" rel="stylesheet" href="example.css" ?></xmp></code></blockquote>
1 error found in /quicksearch.htm[L672:C10] Id redefinition of [ content ]. (id-unique)<section id="content" class="g-mod g-attr">
1 error found in /selectors/relationship/e-child-f.htm[L64:C56] Special characters must be escaped : [ > ]. (spec-char-escape)<blockquote class="gquote-cont"><code><xmp>.demo > div {
1 error found in /selectors/relationship/ef.htm[L77:C127] Special characters must be escaped : [ > ]. (spec-char-escape)<p class="gquote-info">此例,如果使用<code class="incode">.demo div</code>,那么 0, 1, 2, 3 都有有边框;如果使用 <code class="incode">.demo > div</code>,那么只有 0 有边框,即只有子元素会被命中;</p>3 errors found in /values/image/image-set().htm[L102:C7] Special characters must be escaped : [ < ]. (spec-char-escape)<td class="support"rowspan="2">15.0-28.0<br /><sup class="fix">-webkit-</sup> <sup><a href="#support1">#1</a></sup></td>[L102:C37] Special characters must be escaped : [ > ]. (spec-char-escape)<td class="support"rowspan="2">15.0-28.0<br /><sup class="fix">-webkit-</sup> <sup><a href="#support1">#1</a></sup></td>[L102:C122] Tag must be paired, No start tag: [ </td> ] (tag-pair)<td class="support"rowspan="2">15.0-28.0<br /><sup class="fix">-webkit-</sup> <sup><a href="#support1">#1</a></sup></td>
1 error found in /values/textual/url.htm[L82:C1] Tag must be paired, Missing: [ </url></string> ] (tag-pair)</xmp></code></blockquote>
@doyoe
最近一直在找好点的CSS手册,发现了你的佳作,非常厉害,整个手册的外观也做得非常好。
我最近也有打算自己做个好点的手册出来,网上有些手册错误太多了,我想问问:
手册的每个页面都是手写的吗?或者复制套模板,或者用什么工具?
如果发现以前的页面布局排版有问题,你们是一个个页面去手工排查,或者写程序来处理?
另外,您的网站左侧的树形列表是从数据库动态查询的,还是静态的HTML代码?
主要是考虑到页面太多,回头发现错误,维护起来比较麻烦。希望能听听你们的经验,以便于我少走弯路,越详细越好,谢谢~!
我想有搜索功能的话效率可能会更高些?
想收录进 https://github.com/waylau/books-collection
推广给更多的人,可以吗?
一个个去更新浏览器兼容性数据太麻烦了,我这边一直在构思,node下调用caniuse.com的数据来自动化完成此项工作,不知大神您有没有思路呢?咱吧grunt或者gulp搞进来怎样?
falsh应该是flash吧 doyeo大大 技术上没法找到什么问题 只能提出这种蹩脚的问题了 求上榜 = =
原文:
Firefox, Chrome, Safari既支持特定图片类型也支持常见的*.jpg, *.gif, *.jpg等图片格式。
应为:
Firefox, Chrome, Safari既支持特定图片类型也支持常见的*.png, *.gif, *.jpg等图片格式。
相关版本V4.1.5
关于E[att|="val"]的说明好像有点小问题:
原描述:选择具有att属性且属性值为以val开头并用连接符"-"分隔的字符串的E元素。
实际上应该是:属性值为val(-\w+)*,连接符"-"不是必须的。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.