我想用我的網頁的this jQuery庫。我複製所有代碼在文章頁面,然後粘貼到我的.html文件如下:我不能運行我的jQuery代碼作爲工具
<html>
<head>
<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
<script type="text/javascript">
$("document").ready(function(){
$("#demo img[title]").tooltip();
});
</script>
</head>
<body>
<br />
<br />
<div id="demo">
<img src="image1.jpg" title="The tooltip text #1"/>
<img src="image2.jpg" title="The tooltip text #2"/>
<img src="image3.jpg" title="The tooltip text #3"/>
<img src="image4.jpg" title="The tooltip text #4"/>
</div>
</body>
</html>
但.tooltip類樣式沒有運行。我看不到背景圖片和其他圖片。 如何編輯我的.html文件?
另外,如果我想改變這個庫的CSS樣式,我該怎麼辦?
你添加鏈接的CSS文件....? –
其中是http://jquerytools.org/demos/tooltip/index.html中的css文件 – Birlikisgu
您是否收到任何錯誤? –