css百分网之70%的灰色怎么设置

html-css09

css百分网之70%的灰色怎么设置,第1张

filter:alpha(opacity=50)

-moz-opacity:0.5

-khtml-opacity: 0.5

opacity: 0.5

10% { background:red} 表示背景在0-1秒内变红色;

50% { width:80px} 表示宽度在0-5秒内由0变80px;

70% { border:15px solid yellow} 表示边框在0-7秒内由无边框变为15px实心的黄色边框;

100% { width:180pxheight:180px} 表示宽度从5-10秒变成180px,高度变成180px;

综上所述,前面的百分比,代表的是执行的时间,按秒来计算。

望采纳

body{background:url(图片地址) center 70px no-repeat}

要么加个div,例: <div style="margin:70px auto 0pxwidth:背景图的宽pxheight:背景图的高pxbackground:url(图片地址) center 70px no-repeat"></div>