【问题标题】:How to use border-radius in slimscroll如何在 slimscroll 中使用边框半径
【发布时间】:2016-04-16 12:32:03
【问题描述】:

$(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”不起作用。

【问题讨论】:

  • 您不能也不应该将来自raw.github.com 的文件用作脚本,因为它们的MIME 类型为text/plain,因此不会被执行。有关详细信息,请参阅this

标签: javascript jquery html slimscroll


【解决方案1】:

我记得你可以尝试使用 BorderRadius 或
railBorderRadius,它将在 jquery.slimscroll.min.js 文件中

【讨论】:

    猜你喜欢
    • 2022-12-20
    • 2021-09-11
    • 2012-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-26
    相关资源
    最近更新 更多