css当中background的问题
3.background的问题
例 1.3
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
div{
border:1px solid #000000;
height: 80px;
width: 400px;
font-size:25px;
}
</style>
</head>
<body>
<div style="background-image:url(7.gif);height:300px; background-repeat: no-repeat;background-position: 5 5; ">有关background的问题,ie8和FF是兼容的,测the image is at 5,5</div>
ge
<div style="测</div>
ge
<div style="background-image:url(7.gif);background-repeat: no-repeat">测</div>
ge
<div style="background-image:url(7.gif)">测</div>
ge
<div style="background-image:url(7.gif);background-repeat: repeat-x">测</div>
ge
</body>
</html>
更多内容请见原文,文章转载自:https://blog.csdn.net/qq_44594371/article/details/103063944