前端开发(四)HTML5和CSS3
一、圆角、rgba 设置某一个角的圆角,比如设置左上角的圆角: border-top-left-radius:30px 60px; border-top-left-radius: 60px; 同时分别设置四个角: border-radius:30px 60px 120px 150px; 设置四个圆角相同: border-radius:50%; ①盒子透明度表示法: .box { opacity:0.1; /* 兼容IE */ filter:alpha(opacity=10); } ②rgba(0,0,0,0.1) 前三个数值表示颜色,第四个数值表示颜色的透明度 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>透明度</title> <style type="text/css"> body{ background: url(images/banner01.jpg); } .box{ width: 300px; height: 100px; background-color: #000; color: #fff; text-align: center; line-height: 100px; font-size: 30px; /*设置透明度*/ opacity: 0.3; /*兼容IE*/