本帖最后由 浩 于 2021-7-19 11:39 编辑
- <script>
- var options = {
- spreadId: 'excel',
- designerId: 'gc-designer-container',
- allowCopyPasteExcelStyle: true,
- isDesigner: true,
- scrollByPixel: true,
- };
- var spread = new GC.Spread.Sheets.Workbook(document.getElementById(options.spreadId), options),
- designer = new GC.Spread.Sheets.Designer.Designer(document.getElementById(options.designerId), designerOptions, spread);
- // 启用按像素的精确滚动
- spread.options.scrollByPixel = true;
- spread.options.scrollPixel = 10;
- </script>
复制代码
附件是测试上传的附件designer的designerOptions使用的官方默认的
浏览器是火狐浏览器
|
-
-
cs.xlsx
9.58 KB, 阅读权限: 150, 下载次数: 1
上传的该附件
|