我下载了demo.js的演示版,并尝试使用基本HTML对其进行修改。但是这些更改都没有反映在网页上。有什么明显的东西我想念吗? TIA
handleSaveClick
答案 0 :(得分:0)
请在整个容器中使用position: relative
下面的代码将为您服务...
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>particles.js demo</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- particles.js container -->
<div id="particles-js" class="tt"></div>
<!-- stats - count particles -->
<div class="count-particles">
<span class="js-count-particles">--</span> particles </div>
<!-- particles.js lib - https://github.com/VincentGarreau/particles.js -->
<script src="http://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<!-- stats.js lib -->
<script src="http://threejs.org/examples/js/libs/stats.min.js"></script>
<script src="./script.js"></script>
<div class="body-container" style="position: relative;">
<h1 class="main-title"><a href="index.html">Hgdfgdfello all </a></h1>
<p class="text-content">Welcome to my website! Click on a link to get started.</p>
</div>
</body>
</html>