简体   繁体   English

掌上电脑无法正确显示

[英]Handsontable is not displaying properly

I'm having an issue with handsontable displaying properly. 我无法正常使用handontable。 I've made this basically as simple as I can and I'm getting just bizarre results. 我已经尽可能简单地做到了这一点,但结果却很奇怪。 I've installed handsontable through bower and am running it locally -- i'm fairly confident it's loading, but it just looks bizarre. 我已经通过bower安装了handontable并在本地运行-我相当有信心它正在加载,但是看起来很奇怪。

Index.html: Index.html:

<!DOCTYPE html>
<html>

  <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
  <script src="bower_components/handsontable/dist/handsontable.full.min.js"></script>
  <link rel="stylesheet" media="screen" href="/dist/handsontable.full.css">
  <div id="example"></div>
  <script type="text/javascript">
    var data = [
      ["", "Ford", "Volvo", "Toyota", "Honda"],
      ["2016", 10, 11, 12, 13],
      ["2017", 20, 11, 14, 13],
      ["2018", 30, 15, 12, 13]
    ];

    var container = document.getElementById('example');
    var hot = new Handsontable(container, {
      data: data,
      rowHeaders: true,
      colHeaders: true
    });
  </script>
</html>
<style>

看起来像的例子

I can't select anything properly, and obviously it looks bizarre. 我无法正确选择任何东西,显然看起来很奇怪。 Any idea what could be going wrong here? 知道这里可能出什么问题吗? I'm at a bit of a loss I'm afraid. 恐怕我有点茫然。

Okay, got it solved -- not exactly sure why, but switching my script sources to option 3 here . 好的,解决了-不确定原因,但是在这里将脚本源切换到选项3。 Hopefully this helps someone down the line! 希望这可以帮助某人!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM