用css怎么编写使页眉整体是一张图那 不是左角 或右脚是小图有详细的操作法和代码 谢谢

html-css06

用css怎么编写使页眉整体是一张图那 不是左角 或右脚是小图有详细的操作法和代码 谢谢,第1张

制作网页时用CSS和不用有什么区别:

当你用css的时候:打开ie页面的时候:察看——>文字大小,选择任何文字大小的时候文字都不变

当你不用的时候:打开ie页面的时候:察看——>文字大小,选择文字大小的时候页面文字改变

CSS只能用代码编辑吗?

这个不是只能用代码编辑得,有一个软件dreamweaver就可以编,但是代码编的时候功能比较强一些

比如css文件里设置了

.top{

    position:absolute

    top:0px

    width:940px

    height:40px

    background-color:#c0c0c0

}

.bottom{

    position:absolute

    bottom:0px

    width:940px

    height:40px

    background-color:#0c0c0c

}

呢么在页面代码中首先在head引用一下该css,比如名字为demo.css

<link href="demo.css" rel="stylesheet" type="text/css" /><!--假设页面和css文件在一个目录-->

然后在页面的top使用div

<div class="top">Something</div>

在页面的bottom使用div

<div class="bottom">Something</div>

    body:before{content:"百度以下,你就知道……"display:blockheight:50px line-height: 50px background-color:#eee text-align: center}

    body:after{content:"某某科技版权所有"display:blockheight:50px line-height: 50px background-color:#eeetext-align: center}