当前位置: 首页 > news >正文

如何拉下对手网站十种人不适合做管理者

如何拉下对手网站,十种人不适合做管理者,北京建设工程造价管理协会网站,如何在网站后台删除栏目题目#xff1a; 要求#xff1a; 1.表格由专业班级学号1-10号同学的信息组成#xff0c;包括#xff1a;学号、姓 名、性别、二级学院、班级、专业、辅导员#xff1b; 2.表格的奇数行字体为黑色#xff0c;底色为白色#xff1b;偶数行字体为白色#xff0c;底 色为黑…题目 要求 1.表格由专业班级学号1-10号同学的信息组成包括学号、姓 名、性别、二级学院、班级、专业、辅导员 2.表格的奇数行字体为黑色底色为白色偶数行字体为白色底 色为黑色 3.表格的每一行后有一个删除按钮点击后会跳出提示弹窗确认后删除该行的内容并且删除后上述的颜色规律保持不变 4.表格的右上方有一个添加按钮点击后跳出一个表单弹窗可以填加新的学生的信息。 要点原理 通过.value获取表单内容再用innerHTML和添加节点新增到表单上。通过获取删除按钮绑定事件进行remove删除节点不要忘记把新增的内容也获取过来 !DOCTYPE html html langen headmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0titleDocument/titlestyle*{margin: 0;padding: 0;}/* a{color: rgb(247, 4, 4);display: inline-block;} */table {border-collapse: collapse;width: 800px;margin: 0 auto;border-spacing: 20px;text-align: center;padding: 10px;}.add {cursor: pointer;}a {color: pink;display: inline-block;}tbody tr:nth-child(odd) {background-color: black;color: white;}tbody tr:nth-child(even) {background-color: white;color: black;}thead tr:nth-child(1) {background-color: greenyellow;color: black;}tr {height: 40px;}.popup {display: none;background-color: whitesmoke;border-radius: 10px;width: 300px;height: 350px;position: absolute;top: 0px;left: 40%;}/style /head bodytable border1theadtrth学号/thth姓名/thth性别/thth二级学院/thth班级/thth专业/thth辅导员/thth classadda href#添加/a/th/tr/theadtbodytrtd24250101/tdtd小蓝/tdtd女/tdtd计算机专业/tdtd一班/tdtd物联网专业/tdtd魔仙女王/td tda href# classdel删除/a/td/trtrtd24250102/tdtd游乐王子/tdtd男/tdtd计算机专业/tdtd三班/tdtd软件工程/tdtd魔仙女王/td tda href# classdel删除/a/td/trtrtd24250103/tdtd玲珑/tdtd女/tdtd计算机专业/tdtd二班/tdtd软件工程/tdtd魔仙女王/td tda href# classdel删除/a/td/trtrtd24250104/tdtd严莉莉/tdtd女/tdtd计算机专业/tdtd三班/tdtd软件工程/tdtd魔仙女王/td tda href# classdel删除/a/td/trtrtd24250105/tdtd美琪/tdtd女/tdtd计算机专业/tdtd三班/tdtd物联网工程/tdtd魔仙女王/td tda href# classdel删除/a/td/trtrtd24250106/tdtd美雪/tdtd女/tdtd计算机专业/tdtd三班/tdtd物联网工程/tdtd魔仙女王/td tda href# classdel删除/a/td/trtrtd24250107/tdtd小月/tdtd女/tdtd计算机专业/tdtd三班/tdtd软件工程/tdtd魔仙女王/td tda href# classdel删除/a/td/trtrtd24250108/tdtd石小龙/tdtd男/tdtd计算机专业/tdtd三班/tdtd软件工程/tdtd学校老师/td tda href# classdel删除/a/td/trtrtd24250109/tdtd方珍妮/tdtd女/tdtd计算机专业/tdtd三班/tdtd软件工程/tdtd学校老师/td tda href# classdel删除/a/td/trtrtd24250110/tdtd魔仙小千/tdtd女/tdtd计算机专业/tdtd三班/tdtd软件工程/tdtd魔仙女王/td tda href# classdel删除/a/td/tr/tbody/table!-- 添加表单弹出框 --div classpopup idaddPopupdiv classpopup-content!-- span classclose idcloseAddPopuptimes;/span --form idaddFormlabel forstudentId学号:/labelinput typetext idstudentId namestudentIdbrbrlabel forname姓名:/labelinput typetext idname namenamebrbrlabel forgender性别:/labelselect idgender namegenderoption value男男/optionoption value女女/option/selectbrbrlabel forcollege二级学院:/labelinput typetext idcollege namecollegebrbrlabel forclass班级:/labelinput typetext idclass nameclassbrbrlabel formajor专业:/labelinput typetext idmajor namemajorbrbrlabel forcounselor辅导员:/labelinput typetext idcounselor namecounselorbrbrinput typesubmit value提交 classok/form/div/div /bodyscriptconst add document.querySelector(.add)const popUp document.querySelector(.popup)const addForm document.querySelector(#addForm)add.addEventListener(click,function() {popUp.style.display block;})addForm.addEventListener(submit,function(e) {e.preventDefault()const studentId document.querySelector(#studentId).valueconst name document.querySelector(#name).valueconst gender document.querySelector(#gender).valueconst college document.querySelector(#college).valueconst Class document.querySelector(#class).valueconst major document.querySelector(#major).valueconst counselor document.querySelector(#counselor).valueconst tableBody document.querySelector(tbody)const newText document.createElement(tr)newText.innerHTML td${studentId}/tdtd${name}/tdtd${gender}/tdtd${college}/tdtd${Class}/tdtd${major}/tdtd${counselor}/tdtda href# classdel删除/a/tdpopUp.style.display none;tableBody.appendChild(newText)const dels document.querySelectorAll(.del)dels.forEach(function(button){button.addEventListener(click,function(e) {e.preventDefault()if(confirm(你确定要删除吗)) {let All this.parentNode.parentNodeAll.parentNode.removeChild(All)}})})})/script /html视频演示 动态表格
http://www.dnsts.com.cn/news/19438.html

相关文章:

  • 我的世界封面制作网站邢台网站建设哪家好
  • 南宁seo网站排名优化网站网页设计专业公司
  • 网站从哪几个方面维护山西软件开发公司排行
  • 德语网站制作网站建设与网页设计期末考试
  • 网站设计的思想编程做网站容易还是做软件
  • 新乡企业建网站免费建立个人网站官网
  • 58同城一样的网站怎样建设个人养老金制度9月底前亮相
  • 制作网站步骤兴宁房产网
  • 做网站要坚持qq空间网站根目录
  • 建设内部网站目的让网站快速收录
  • jsp网站服务建设是什么国外美容院网站
  • 做网站主播要什么条件广州网站制作一般多少钱
  • 湛江怎么做网站关键词优化做网站怎么兼职
  • 广州网站设计首选刻腾讯有做淘宝客网站吗
  • 做搜索引擎的网站北京公司网站
  • 烟台哪个公司做网站好wordpress防止cc
  • dw网站log怎么做微信做单网站
  • 德州哪家网站优化好南京做网站找哪家好
  • 网站开发主流语言多多鱼网页模板
  • 建设淘宝网站需要多少钱做100个网站挂广告联盟
  • 桂林网站制作找志合网络公司做旅游网站教程
  • 海北公司网站建设哪家快沂源网站开发
  • 滨州哪里做网站郑州上市企业网站建设
  • 建一个公司网站多少钱?优化大师网页版
  • 建站属于什么行业盐城做网站哪家公司好
  • 网上商城网站模板网站建设报价购物
  • 网站建设代理哪个好免费建网站程序
  • 大连好的网站建设公司郑州自助建站软件
  • 17做网站广州沙河地址广东省建设工程金匠奖公布网站
  • 网页设计好的网站企业微信crm