css问题定位问题

呃 我也不太明白你说的 我给你弄一下 我的代码 你看一下

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>无标题文档</title>
<style type=”text/css”>
.box{ position:relative; height:auto; width:200px; border:1px solid #ccc;}
.box .div1{ position:absolute; height:200px; width:100px; border:1px solid #000;}

</style>
</head>

<body>
<div class=”box”>
<div class=”div1″></div>
</div>
</body>
</html>

css问题定位问题

相关文章:

你感兴趣的文章:

标签云: