如何讓「mymessage.gif」顯示「bread_wine.jpg」。CSS中的重疊圖像
mymessage.gif具有透明背景。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>overlap images</title>
<style type="text/css">
<!--
#navbar {
font-size: 18px;
font-weight: bold;
text-align: center;
}
#thebigimage {
background-image: url(bread_wine.jpg);
height: 548px;
width: 731px;
margin-right: auto;
margin-left: auto;
}
#overlapthis {
background-image: url(mymessage.gif);
}
-->
</style>
</head>
<body>
<div id="navbar">this is the nav bar</div>
<div id="thebigimage">
<div id="overlapthis"></div>
</div>
</body>
</html>
工作完美!非常感謝! – MP123 2010-10-24 22:00:38
不用擔心朋友,隨時。希望你明白髮生了什麼:) – Claudiu 2010-10-24 22:02:47
'background-size:80px ?? px;'可以用來指定圖像的大小。 – Anirudh 2013-03-20 15:53:55