Title/ CSS Background&Gradient完全指南 #Archives009 序: 关于 background 属性, 了解点CSS的人总会知道个大概. 但是你肯定多半还有点不会的吧(别在这装!), 比如你能手写CSS的6个渐变函数吗? 你知道bg-repeat中space和round的作用吗? 你能用纯CSS实现AI中的"任意渐变"吗? 这篇文章详细的整理了一遍CSS的Background和Gradient属性的各种诡异用法. 当然照顾萌新, 讲的会比较完整…
css边框和背景属性 border:所有边框属性 border-width:四条边框的宽度 border-style:设置边框样式,主要有dotted.solid.double border-color:设置四条边框的颜色 border-left:在一个生命中设置所有左边框属性,对应还有border-right border-left-color:左边框颜色,对应还有border-right-color border-left-style:左边框样式,对应还有border-right-style…
css背景属性及其应用 1.背景 2.背景简写 3.背景透明(css3) 4.背景缩放(css3) 5.多背景图片(css3) 6.凹凸文字效果…
代码是敲出来的,建议一个一个过一遍 背景属性 背景颜色 background-color 背景颜色 默认值是transparent(透明的) 示例代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>CSS基本样式</title> <style> body{ height: 1000px; /…
一.背景颜色 background-color 属性名:background-color 作用:在盒子区域添加背景颜色的修饰 加载区域:在 border 及以内加载背景颜色 属性值:颜色名.颜色值 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="…
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <html> <head> <title>背景属性 background</title> <style type=&quo…
css常用伪类别属性 对<a>标签可制动态效果的css a:link:超链接的普通样式 a:visited:被点击过的超链接样式 a:hover:鼠标指针经过超链接上时的样式 a:active:在超链接上单击时,既“当前激动“时超链接的样式 <style> .charal{ font-size:15px; background-color:#90bcff; width:600px; } .charcl td{ text-align:center; } a:link{ color:#…
css控制文本字体属性 font-family:字体系列,如”serif“”sans-serif“ font-size:尺寸 font-style:字体样式,如“normal,italic(斜体).oblique(字体倾斜) font-weigh:字体粗细,如bold 举例:p.article{ font-size:20px; font-style:italic; } p.kaiti{ font-family:楷体_GB2312 font-style:normal: font-weight:bo…
分类:纯色背景    背景图像 1.背景颜色 background-color : 任意合法的颜色 和 transparent 2.背景图像 background-image : url(想要加载的图片) 3.背景图片平铺 background-repeat : repeat:默认值水平垂直方向都平铺 repeat-x : 水平方向平铺    repeat-y : 垂直方向平铺    no-repeat : 默认不平铺 4.背景图片的尺寸 background-size : value1   …
一.背景尺寸属性:    1.含义:        背景尺寸属性是CSS3中新增的一个属性,专门用于设置背景图片大小 2.格式:        1.1具体像素:             background-size:300px 200px;             第一个参数:宽度            第二个参数:高度 1.2百分比:             background-size:80% 50%;             第一个参数:宽度            第二个参数:高度 1…