我只想将样式应用于 myPage id。但我无法通过以下方式实现它:
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="style1.css"/>
</head>
<body>
<div>
Welcome To CSS3....
Learning.....!
</div>
<div id="myPage">
Welcome ....
<img src="rose1.jpg" width="200" height="200" />
</div>
</body>
</html>
.myPage div{
border:2px solid black;
background-color:yellow;
font-color:red;
box-shadow:10px 10px 7px #777
}
请告诉我错误。
谢谢
斯内哈