小编Bar*_*awa的帖子

背景覆盖背景大小

我已经知道我的问题的解决方案,但我想知道为什么会这样.为什么背景会覆盖背景大小?请不要写关于交叉浏览.

HTML

<div class="icon"></div>
Run Code Online (Sandbox Code Playgroud)

CSS

.icon {
    height: 60px;
    width: 60px;
    background-size: 60px 60px;
    background: transparent url("icon.png") no-repeat 0 0;

}
Run Code Online (Sandbox Code Playgroud)

DEMO

http://jsfiddle.net/K74sw/2/

background-size下面插入说明background

html css

8
推荐指数
2
解决办法
3203
查看次数

层叠样式表优化

我想知道优化的情况:

font-weight: normal;
font-weight: 400;
Run Code Online (Sandbox Code Playgroud)

哪条指令最优?

css optimization

1
推荐指数
1
解决办法
77
查看次数

标签 统计

css ×2

html ×1

optimization ×1