CSS入门教程:定义字符串
网络整理 - 07-27
CSS入门教程,本文让我们来学习一下定义字符串。看下面的教程吧:
示例:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>CSS入门教程: 定义字符串</title>
<style type="text/css" media="all">
h1:before
{
content: "建站学: ";
display: inline;
}
div:before, div:after
{
background: lightgreen;
content: "建站学";
}
</style>
</head>
<body>
<h1></h1>
<div>在div的前后都增加了内容</div>
</body>
</html>