adambard / adambard/learnxinyminutes-docs

CSS issues

未关闭
#4,732 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Markdown
星标
12.3k
派生
3.7k
平均合并
13 小时 10 分钟
30 天内合并 PR
6

描述

CSS page have really fuzzy explaination.

```css
/* You can select an element which is a child of another element */
div.some-parent > .class-name { }

/* or a descendant of another element. Children are the direct descendants of
their parent element, only one level down the tree. Descendants can be any
level down the tree. */
div.some-parent .class-name { }
```
It is unclear which element will be selected. `div.some-parent` or `.class-name` one?
What does "another element" mean?

---

```css
/* Warning: the same selector without a space has another meaning.
Can you guess what? */
div.some-parent.class-name { }
```
What should one guess in Learn X in Y? Why not just explain warning?

---

I didn't like this page and explaination of rules.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。