前端开发的第一段代码

时间:2015-05-29 19:59:11   收藏:0   阅读:104
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

   <title>04-10盒模型中的margin设置</title>   

<style>
       #cont
      	{
           width:1000px;
           height:600px;
           background:green;
           }
       #div
       {
           width:400px;
           height:200px;
           background:blue;
           float:left;
           }
        #test
        {
           margin;10px;

           }
</style>
</head>

<body>
     <div id="cont">
          <div id="test"></div>
          <div></div>
          <div></div> 
     </div>
          
</body>  

</html>

  

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!