0

$(document).ready(function(e) { 
  $('.slimmscroll').slimscroll({
    color: 'rgba(0,0,0,0.5)',
    size: '4px',
    radius : '40px',
    height: '100px',
    alwaysVisible: true
  });
});
<script src="https://raw.github.com/rochal/jQuery-slimScroll/master/jquery.slimscroll.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>

<div class="slimmscroll">
  <h1>Simple Sidebar</h1>
  <p>This template has a responsive menu toggling system. The menu will appear collapsed on smaller screens, and will appear non-collapsed on larger screens. When toggled using the button below, the menu will appear/disappear. On small screens, the page content will be pushed off canvas.</p>
  <p>Make sure to keep all page content within the <code>#page-content-wrapper</code>.</p>
 <p>This template has a responsive menu toggling system. The menu will appear collapsed on smaller screens, and will appear non-collapsed on larger screens. When toggled using the button below, the menu will appear/disappear. On small screens, the page content will be pushed off canvas.</p>
  <p>Make sure to keep all page content within the <code>#page-content-wrapper</code>.</p>

</div>

没有得到如何在 jQuery 的 slimscroll 中使用边框半径?我尝试了“border-radius”,正在触发错误,并尝试“radius”不起作用。

4

1 回答 1

0

我之前已经研究过了,我记得你可以尝试使用 BorderRadius 或
railBorderRadius,它将在 jquery.slimscroll.min.js 文件中

于 2016-04-16T12:49:42.443 回答