absolute是相对于外面div进行绝对定位,因为absolute会脱离文档流,所有加z-index.自然就能看到top,bottom,left和right设置的值了。分别代表距离div上面一半的位置,下边紧挨着,左右各相距10个像素。
box-shadow添加阴影。
border-radius圆角,让阴影的颜色两边浅,中间深
box-shadow添加阴影。
border-radius圆角,让阴影的颜色两边浅,中间深
2016-02-24
#brand:target p {
background: orange;
color: #fff;
}
加上id名是为了之后的不混淆。
background: orange;
color: #fff;
}
加上id名是为了之后的不混淆。
2016-02-24
最新回答 / 慕移动9181930
backgroundColor是明确指出是背景色,background是指背景您好,现在json和xml做为通信格式都在使用,要看业务,json其实很受开发者喜欢,喜欢他比较简单,生成和解析json都很方便,但这个要看个人。祝学习愉快!
2016-02-23
a[class^=column]{background:red;}
a[href$=doc]{background:green;}
a[title*=box]{background:blue;color:#000;}
class^应用于类名,href$ 链接后缀
a[href$=doc]{background:green;}
a[title*=box]{background:blue;color:#000;}
class^应用于类名,href$ 链接后缀
2016-02-23
background:url(http://static.mukewang.com/static/img/logo_index.png) no-repeat left top/220px 58%,
url(http://static.mukewang.com/static/img/logo_index.png) no-repeat bottom right/150px 38% ;
}
url(http://static.mukewang.com/static/img/logo_index.png) no-repeat bottom right/150px 38% ;
}
2016-02-23
.wrap {
width:220px;
border:20px dashed #000;
padding:20px;
font-weight:bold;
color:#000;
background:#ccc url(http://static.mukewang.com/static/img/logo_index.png) no-repeat center center;
background-origin: content-box;
position: relative;
}
width:220px;
border:20px dashed #000;
padding:20px;
font-weight:bold;
color:#000;
background:#ccc url(http://static.mukewang.com/static/img/logo_index.png) no-repeat center center;
background-origin: content-box;
position: relative;
}
2016-02-23
width:100px;
height:100px;
box-shadow:4px 4px 6px #666, /*外阴影右下角*/
-10px -6px 6px green, /*外阴影左上角*/
4px 4px 4px blue inset, /*内阴影左上角*/
-5px -5px 6px red inset, /*内阴影右下角*/
-8px 10px 4px #4c221b inset, /*内阴影右上角*/
10px -8px 4px #ff7500 inset; /*内阴影左下角*/
height:100px;
box-shadow:4px 4px 6px #666, /*外阴影右下角*/
-10px -6px 6px green, /*外阴影左上角*/
4px 4px 4px blue inset, /*内阴影左上角*/
-5px -5px 6px red inset, /*内阴影右下角*/
-8px 10px 4px #4c221b inset, /*内阴影右上角*/
10px -8px 4px #ff7500 inset; /*内阴影左下角*/
2016-02-23
当你学起来觉得容易时,说明你距离现在所学的已经没有一大段距离了。那就继续踏实学,因为就算看懂了,也是并没有什么卵用。写不出来,再回头看,自然而然就不懂了。
2016-02-22