我写了这个:jQuery的HTML问题
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script>
$("div.productInfo").wrap("<div id='productDetails'></div>");
</script>
</head>
<body>
<div class="productInfo">Whatever.</div>
</body>
而且它没有工作? 谢谢。
它的工作,但我的一些图像删除我不知道为什么?谢谢 – 2011-06-01 00:51:22
我猜你的“productDetails”div也应该有一个“productInfo”类,以便它继承相同的样式并且不会影响你的布局 – Trey 2011-06-01 00:53:17