曾经的一个预测录入草稿
2022/1/23 6:07:43
本文主要是介绍曾经的一个预测录入草稿,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="UTF-8"> <meta name="Keywords" content=""> <meta name="Description" content=""> <title>初始化表格</title> <link rel="stylesheet" href="/css/某某.css"> <script type="text/javascript" src="/js/jquery-3.2.1.js" charset="UTF-8"></script> <style> * { padding: 0; margin: 0 } a { text-decoration: none; /*去除下划线装饰*/ color: #2f2f2f; } ul, li { list-style: none; /*去除ul,li前面的点*/ } body { font-size: 14px; font-family: "微软雅黑" } </style> </head> <body> <style> .predictInput{ background: #f3f596; margin:10px auto; height: 500px; width:960px; position:relative; } .predictInput .table-view{ background: #000; width:500px; height:400px; position:absolute; top:0;right:0;bottom:0;left:0; margin:auto; } .show-btn{ width:120px; height:30px; background: #d3c198; display: block; text-align: center; line-height:30px; margin:20px auto; } </style> <div class="predictInput"> <div class="table-view"> <table frame="border" rules="all" class="table-view"> <caption>测试表</caption> <tr> <td>单元格</td><td>单元格</td> </tr> </table> </div> </div> <a class="show-btn" href="javascript:void(0)" onclick="showTable()"> 预测录入 </a> <div class="test"></div> <div class="test"></div> <div class="test"></div> <div class="test"></div> <div class="test"></div> <div id="myTest"></div> <script> function showTable(){ //给一个div 绑定 css样式。 //alert(document.querySelector("#myTest").className = "show-btn"); // 这个操作比较好玩。querySelectorAll('选择器名称') 返回的是一个对应节点的数组。 console.log(document.querySelectorAll('.test')[0].className = "show-btn") } </script> </body> </html>
这篇关于曾经的一个预测录入草稿的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-09-28AI给的和自己写的Python代码,都无法改变输入框的内容,替换也不行
- 2024-09-27Sentinel配置限流资料:新手入门教程
- 2024-09-27Sentinel配置限流资料详解
- 2024-09-27Sentinel限流资料:新手入门教程
- 2024-09-26Sentinel限流资料入门详解
- 2024-09-26Springboot框架资料:初学者入门教程
- 2024-09-26Springboot框架资料详解:新手入门教程
- 2024-09-26Springboot企业级开发资料:新手入门指南
- 2024-09-26SpringBoot企业级开发资料新手指南
- 2024-09-26Springboot微服务资料入门教程