<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
.divclass
{
width:260px;
font-size:10px;
padding:5px;
}
.divclick
{
border:1px solid red;
width:260px;
font-size:16px;
padding:10px;
background-color:Red;
}
</style>
<script src="jquery-1.9.1.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('.divclass').click(function () {
$(this).toggleClass('divclick').html("点击后的样式");
})
})
</script>
</head>
<body>
<div class="divclass">点击前的样子</div>
</body>
</html>