能否将单独的css文件的代码写入到html中?

来源:百度知道 编辑:UC知道 时间:2024/05/28 16:48:02
我下载了一个html+css的模版,但我想修改成单一html的文件,能否将单独的css文件的代码写入到html中,把模版变成单一的html?

可以,举例如下:
<style type="text/css">

body{
background: #FFFFFF;
color: #333333;
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;
line-height: 140%;
text-align: center;
padding: 0;
margin: 0;
}

p{
margin: 0;
}
address{
font-size: 75%;
}

body,html{
height: 100%;
}
* html, * html body{
overflow: hidden;
}

#top{
min-height: 90%;
overflow: auto;
}

* html #top{
height: 90%;
}

#footer{
height: 10%;
background: #CC0000;
color: #FFFFFF;
}

address{
padding-top: 1em;
font-style: normal;
}

a{
text-decoration: none;
}

.textBottom {
color: #333333;
position: absolute;
left: 3em;
top: 1em;
font: 26px "Century Gothic",Arial, Helvetica,