简体   繁体   English

如何给出水平和垂直标题固定但数据应该移动

[英]how to give horizontal and vertical header fixed but data should move

I tried to develop table with fixed header( ie Header must contain - vertical and horizontal way ). 我尝试用固定标题开发表格( 即标题必须包含 - 垂直和水平方式 )。

  • table should be in scrollable table应该是可滚动的
  • table must have horizontal header 表必须有水平标题
  • vertical header same as horizontal header. 垂直标题与水平标题相同。
  • when we going up-down using scroll header should be visible at top.(when we moving up down left side header should be up down) 当我们上下使用滚动标题应该在顶部可见。(当我们向上移动左侧标题应该向上)
  • and when we scrolling left-right header should be visible at left side (when we moving left-right top header should be move) 当我们滚动左右标题时应该在左侧可见(当我们移动左右顶部标题时应移动)

UPDATE : This Image is what i want in phonegap using html or any web developing tools. 更新 :这个图像是我想要在使用HTML或任何Web开发工具的phonegap。 BUT NOT in EXCEL 但不是在EXCEL

图像在这里


This table i am developing for my mobile app(Android/iPhone) etc. 这个表我正在开发我的移动应用程序(Android / iPhone)等。

I have seen many table but i am not able to find my perfect way. 我见过很多桌子,但我找不到完美的方式。 I am using phoneGap , jqueryMobile , jQuery , html , css , javascript , third party .js and other web search... 我正在使用phoneGapjqueryMobilejQueryhtmlcssjavascript ,第三方.js和其他网络搜索...

Thanks and sorry for my grammar. 谢谢,抱歉我的语法。

demo 演示

One way to solve this is to use css for horizontal and vertical headers by using div layout and applying position: fixed; 解决此问题的一种方法是使用div布局并应用position: fixed;来使用css作为水平和垂直标题position: fixed; and then design you tabular data using table layout as you want and by applying the top and left margin for them. 然后根据需要使用表格布局设计表格数据,并为它们应用顶部和左侧边距。

But it's not possible if you want exactly as Microsoft's Excel with this solution . 但是如果你想要这个解决方案完全像微软的Excel一样,那是不可能的。

嗨检查这个jsfiddle这可能会帮助你工作示例http://bit.ly/1flXtbs

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

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