呵呵, 土鳖了~~
<html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link type="text/css" rel="stylesheet" href="" /> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src=""></script> <style type="text/css"> .one { border : solid 2px; } .two { background : red; } </style> </head> <body> <p class="one two">this is a multi-class paragraph</p> </body> </html> |
显示出来的效果两个的都有, 怪不得jquery中有个addClass方法~~