0

我看到了这个渲染 js 的鱼眼效果,并尝试在网站 HTML 中使用它。它工作正常,但我无法更改项目之间的空间。有谁知道如何改变项目之间的空间?这是 HTML/js 代码:

<script type="text/javascript">

    $(document).ready(
        function()
        {
            $('#dock').Fisheye(
                {
                    maxWidth: 50,
                    items: 'a',
                    itemsText: 'span',
                    container: '.dock-container',
                    itemWidth: 75,
                    proximity: 90,
                    halign : 'center'
                }
            )
        }
    );

</script><div id="topbutton-container">
<div style="float:left; width:17px; margin:0px;"><img src="images/topbutton-left.jpg" /></div>
<div id="topbutton" align="center"><div class="dock" id="dock">
  <div class="dock-container">
  <a class="dock-item" href="index.html"><img src="images/home.png" alt="home" /><span>Home</span></a> 
  <a class="dock-item" href="projects.html"><img src="images/projects.png" alt="contact" /><span>Projects</span></a> 
  <a class="dock-item" href="course.html"><img src="images/course.png" alt="portfolio" /><span>Course</span></a> 
  <a class="dock-item" href="testimonial.html"><img src="images/music.png" alt="music" /><span>Testimonial</span></a> 
  <a class="dock-item" href="latest-updates.html"><img src="images/history.png" alt="history" /><span> Latest Updates</span></a> 
  <a class="dock-item" href="contact.html"><img src="images/contact.png" alt="calendar" /><span>Contact</span></a> 
</div>
</div></div>
<div style="float:left; width:17px; margin-top:0px;"><img src="images/tobutton-right.jpg" /></div>
</div>
4

1 回答 1

0

你包括所有的支持文件吗?

    <script type="text/javascript" src="javascript/jquery.js"></script>
    <script type="text/javascript" src="javascript/interface.js"></script>
    <link type="text/css" href="css/interface-fisheye.css" rel="stylesheet"> 
于 2012-10-18T11:38:36.707 回答