<title>box-shadow</title>
<style type="text/css">
body{background:url(bg.jpg)}
P{font-size:40px;text-align:center;font-weight:bold;background-color:(100,120,60,0.5);}
</style>
</head>
<body>
<p>kdjsfaieihgkkd</p>
</body>
</html>
background-color:(100,120,60,0.5)换成background-color:rgba(100,120,60,0.5);你少写了rgba
background-color后面是rgba()
background-color后面是rgba()
background:rgba(255,255,255,0.5)是这个,因为属性的不同写法里面的参数也会不同
在css中的style中,p应该小写,不能大写,不符合css选择器的格式
背景颜色写错了:background-color:rgba(100,120,60,0.5);
body{background:url(bg.jpg) 70 repeat}
P{font-size:40px;text-align:center;font-weight:bold;background-color:rgba(100,120,60,0.5);}