不规则图形做背景用CSS怎么定义

来源:百度知道 编辑:UC知道 时间:2024/06/02 15:53:44
比如我用的斜线那样的灰色小图片
做的中间部分的背景
然后在上面有内容显示 (如小图片。文字之类)
那要怎么来定义 呢

<!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>无标题文档</title>
<style type="text/css">
<!--
body {
background-image: url(bj.jpg);
height: 200px;
width: 200px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}
-->
</style>
</head>

<body>
<img src="1240817594885.jpg" />
<p>关过道客厅卧室书房餐厅厨房阳台吧台花园卫生间儿童房新婚房衣帽间休息室地下