HTML边距和背景图片的设置
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>css属性</title>
<style>
<!-- p{ -->
<!-- color: #FF0000; -->
<!-- font-size: 30px; -->
<!-- text-align: center; -->
<!-- line-height: 200px; -->
<!-- /* -->
<!-- border 边框 -->
<!-- */ -->
<!-- border: 1px solid red; -->
<!-- } -->
div{
border: 1px solid red;
/*
尺寸
*/
height: 1482px;
width: 1000px;
/*
背景
*/
background: url("image/1.jpg") no-repeat center;
}
p{
color:red;
font-size:13px;
font-family:'楷体';
}
</style>
</head>
<body>
<!-- <p>你好</P> -->
<div><p>你是我得不到的女孩</p>
</div>
</body>
</html>
视频加载中...
请先 后发表评论~