这些代码做出来是什么效果,直接复制到dreamweaver里行吗

来源:百度知道 编辑:UC知道 时间:2024/09/22 20:22:22
<!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=gb2312" />
<title>CSS固定定位</title>
<style type="text/css">...
* {...}{
padding:0;
margin:0;
}
#fixedLayer {...}{
width:100px;
line-height:50px;
background: #FC6;
border:1px solid #F90;
position:fixed;
left:10px;
top:10px;
}
</style>
<!--[if lte IE 6]>
<style type="text/css">
html {
height:100%;
overflow:hidden;
}

可以把代码写进记事本,然后贴进去,重命名为.html的文件,也可以用DW做,运行出来,固定不动这几个字不随着滚动条滚动,下面的<p></p>之间的内容会随着滚动!

推荐你一个网站“W3C在线教程”www.w3school.com.cn,上面有很多网页设计的入门教程