
谁能告诉我下面这段是什么意思呢,是用来声明的还是什么作用的
<head><styletype="text/css">div#container{width:500px}div#header{background-color:#99...
<head>
<style type="text/css">
div#container{width:500px}
div#header {background-color:#99bbbb;}
div#menu {background-color:#ffff99;height:200px;width:150px;float:left;}
div#content {background-color:#EEEEEE;height:200px;width:350px;float:left;}
div#footer {background-color:#99bbbb;clear:both;text-align:center;}
h1 {margin-bottom:0;}
h2 {margin-bottom:0;font-size:18px;}
ul {margin:0;}
li {list-style:none;}
</style>
</head> 展开
<style type="text/css">
div#container{width:500px}
div#header {background-color:#99bbbb;}
div#menu {background-color:#ffff99;height:200px;width:150px;float:left;}
div#content {background-color:#EEEEEE;height:200px;width:350px;float:left;}
div#footer {background-color:#99bbbb;clear:both;text-align:center;}
h1 {margin-bottom:0;}
h2 {margin-bottom:0;font-size:18px;}
ul {margin:0;}
li {list-style:none;}
</style>
</head> 展开
展开全部
这段是CSS, 定义了显示的样式
追问
可以详细的给我讲解下嘛
追答
div#container
是指id为container的div, 后面的大括号里的内容就是给这个div制定的
width: 50px; 值宽度50个像素
background-coor:#99bbbb; 表示背景颜色为#99bbbb, 十六进制表示形式
height: 200px; 表示高度200像素
float: left; 表示向左浮动
text-align:center; 表示居中对齐
css内容很多, 你可以去参考一下w3shool
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询