谢谢你的解答。
- <html>
- <head>
- <style>
- .wj-flexgrid {
- height: 300px;
- background-color: white;
- box-shadow: 4px 4px 10px 0px rgba(50, 50, 50, 0.75);
- margin-bottom: 12px;
- }
- </style>
- <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />
- <link href="styles/vendor/wijmo.min.css" rel="stylesheet" />
- <link rel="stylesheet" href="styles/app.css" />
- <script src="http://code.jquery.com/jquery-2.0.0.min.js" type="text/javascript"></script>
- <script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js" type="text/javascript"></script>
- <!-- Wijmo -->
- <script src="scripts/vendor/wijmo.min.js" type="text/javascript"></script>
- <script src="scripts/vendor/wijmo.input.min.js" type="text/javascript"></script>
- <script src="scripts/vendor/wijmo.grid.min.js" type="text/javascript"></script>
- <script src="scripts/wijmo.culture.de.js" type="text/javascript"></script>
- </head>
- <body>
- <!-- this is the grid -->
- <div id="gsFlexGrid"></div>
- <script>
- var countries = 'US,Germany,UK,Japan,Italy,Greece'.split(',');
- var data = [];
- for (var i = 0; i < 100; i++) {
- data.push({
- id: i,
- country: countries[i % countries.length],
- date: new Date(2014, i % 12, i % 28),
- amount: Math.random() * 10000,
- active: i % 4 === 0
- });
- }
- // create the grid and give it some data
- var grid = new wijmo.grid.FlexGrid('#gsFlexGrid');
- grid.itemsSource = data;
- grid.formatItem.addHandler(addToolTip);
- function addToolTip(grid, event){
- var tooltip = new wijmo.Tooltip();
- tooltip.setTooltip(event.cell, event.cell.innerHTML);
- };
- </script>
- </body>
复制代码
这是我的demo, 不是闪烁问题,而是 toolTip会上下跳动 |