找回密码
 立即注册
相关推荐换一批
  1. 外勤人员管理系统E4a安卓手机端和易语言源码pc端
  2. 易语言数据表状态切换模块源码
  3. 远程服务器与客户端交互易语言源码
  4. SSD1306-datasheet.pdf
  5. HT30温湿度传感器数据表.pdf
  6. 鸿蒙 温湿度功能所需的数据表和原理图
  7. 饱和蒸汽特性数据表.xls
  8. 易语言Example源码,易语言Winsock实现网络聊天室源码
  9. 易语言远程桌面连接源码
  10. 易语言曲线图例程源码,易语言数据表状态切换模块源码
  11. 易语言ACCESS数据库分页显示源码
  12. 易语言原始学生数据导入10版源码
  13. 易语言源码文本数据表编辑器_文本数据表模块
  14. WS/T 464-2015 食物成分数据表达规范
  15. GB/T 16656.505-2010 工业自动化系统与集成 产品数据表达与交换 第505部分:应用解释
  16. GB/T 16656.501-2005 工业自动化系统与集成 产品数据表达与交换 第501部分:应用解?
  17. GB/T 18679.2-2002 农业液体喷雾机 数据表 第2部分:零部件技术规范
  18. GB/T 18679.1-2002 农业液体喷雾机 数据表 第1部分:典型格式
  19. GB/T 16941-1997 流程工业用透平压缩机 设计、制造规范与数据表
  20. GB/T 16656.201-1998 工业自动化系统与集成产品数据表达与交换 第201部分:应用协议:
  21. GB/T 16656.44-1999 工业自动化系统与集成 产品数据表达与交换 第44部分:集成通用?
  22. GB/T 16656.43-1999 工业自动化系统与集成 产品数据表达和交换 第43部分:集成通用?
  23. GB/T 16656.41-1999 工业自动化系统与集成 产品数据表达与交换 第41部分:集成通用?
  24. GB/T 16656.1-1998 工业自动化系统和集成 产品数据表达与交换 第1部分 概述与基本原
example数据表displaybox | 软件设计/软件工程 2022-05-03 417 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
问题
我是数据表的新手,从未创建过响应数据表。所以我可能需要很多帮助。

这是 JQuery 数据表的可编辑链接。我想创建响应式的。我做的第一件事是,我删除了它的容器宽度,现在它调整为平板电脑大小的屏幕,看起来还不错。
  1. #fw_container {
  2.     margin: 0 auto;
  3.     max-width: 90%;
  4.     padding-top: 2em;
  5. }
  6. .full_width {
  7.     width: 90%;
  8. }
复制代码

但是屏幕的尺寸比那张桌子小。

我希望数据表像这样工作。

我无法为您提供指向我的网站的链接,我已经实施了该链接,因为它位于网站管理面板中。

任何想法/有用的链接或方向都会帮助我。谢谢!

回答
在响应式设计中,大多数技巧都是使用百分比值完成的,直到我们开始使用@media 进行查询。

对于您的示例,我相信您可以管理 th 和 td 标签使用的百分比,但如果它小于 40em,那么完全不同的 CSS 将控制如下;
  1. //when width less than 40em you can also use px
  2. @media (max-width: 40em)
  3. {
  4.    // show every item as a line
  5.    .movie-list td, .movie-list th {
  6.    width: 100%;
  7.    -webkit-box-sizing: border-box;
  8.    -moz-box-sizing: border-box;
  9.    box-sizing: border-box;
  10.    float: left;
  11.    clear: left;
  12.   }
  13.     //for th and .titles display them as a big bold title with different background color
  14.     .movie-list tbody th, .movie-list tbody td.title {
  15.     display: block;
  16.     font-size: 1.2em;
  17.     line-height: 110%;
  18.     padding: .5em .5em;
  19.     background-color: #fff;
  20.     color: #77bbff;
  21.     -moz-box-shadow: 0 1px 6px rgba(0,0,0,.1);
  22.     -webkit-box-shadow: 0 1px 6px rgba(0,0,0,.1);
  23.     box-shadow: 0 1px 6px rgba(0,0,0,.1);
  24.     }

  25.     //for th only this is only for margin to override previous css
  26.     .movie-list tbody th {
  27.        margin-top: 0;
  28.        text-align: left;
  29.      }
  30. }
复制代码

希望这会有所帮助这只是开始;

在这里你的鱼友:) 只需使用开发工具栏并在代码下添加 h2 实时示例标签;
  1. <style>
  2. // check if it is a small device ipad iphone android etc.
  3. // google for example 'css  media queries for mobile"
  4. @media (max-width: 40em) {
  5.   // just did something to display second row use your skills
  6.   table#example tr.even
  7.   {
  8.      border: 2px solid red;
  9.   }  
  10. // exactly the same with other one to display td as rows
  11. // with css selector you can hide first one display 2nd one like a title etc
  12. table#example tr td
  13.   {
  14.   background-color:white;
  15.      width: 90%;
  16.    -webkit-box-sizing: border-box;
  17.    -moz-box-sizing: border-box;
  18.    box-sizing: border-box;
  19.    float: left;
  20.    clear: left;
  21.   }  
  22.   // remove the thead as we dont need it
  23.   // you should do similar to the footer as well
  24.   table#example thead
  25.   {
  26.      display:none;
  27.   }  
  28.   // hide unwanted pagination elements
  29.   table#example ~ div.fg-toolbar div#example_info,
  30.     table#example ~ div.fg-toolbar div a
  31.   {
  32.   display:none;
  33.   }
  34.   // and only display next and prev
  35.   // it s not what I actually wanted to make it more tab able make it bigger and try to cover half of the row.  
  36.   table#example ~ div.fg-toolbar div a#example_previous,
  37.   table#example ~ div.fg-toolbar div a#example_next
  38.   {
  39.   display:inline-block;
  40.   width:46% !important;

  41.   }
  42. }

  43. </style>
复制代码

据我所知,编辑和添加工作,因为这是完整的 css,你必须更深入地挖掘。





上一篇:materialzile.css 转盘在移动设备上不起作用
下一篇:尽管在 CLI 上工作,但 PHP grpc 扩展在 WAMP 上不起作用