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

贷款公司如何做网站中国十大小说网站排名

贷款公司如何做网站,中国十大小说网站排名,中央农村工作会议全文,用vue做网站1.1 创建css文件,用于编辑style 注意: 1.背景颜色用ppt的取色器来获取: 先点击ppt的形状轮廓,然后点击取色器,吸颜色,然后再点击形状轮廓的其他轮廓颜色,即可获取到对应颜色。 2.表格间的灰色线…

 1.1 创建css文件,用于编辑style

        注意:

        1.背景颜色用ppt的取色器来获取:

                先点击ppt的形状轮廓,然后点击取色器,吸颜色,然后再点击形状轮廓的其他轮廓颜色,即可获取到对应颜色。

 

        2.表格间的灰色线是在th和td中用border属性设置的;

        3.在js中拼接字符串时,不允许在一对双引号中继续出现双引号,内部应使用单引号:

str += "<tr bgcolor='#EAF3F2'>";

        4. 使用css的外部样式表时,外部样式会最后把html里设置的样式覆盖掉!

        5.查询地区按钮实现逻辑:先获取选择框的text文本,再创建一个方法,输入是原始表格数据,输出是新数据,通过获取原始表格每一行第一列的数据与text文本进行判断,如果相等,则新数据使用push方法添加整行数据,如果不相等直接break,开始下一行判断。注意,要考虑text为“全部”的情况。在得到新的表格数据后,先清空原来的表格数据,再将新数据作为输入再次调用原来创建动态表格的方法即可。

        css文件如下:

select{margin-right: 10px;
}body{height: 800PX;background: linear-gradient(to bottom,#DCF3F2,#A3E5E7);
}button{color: white;background-color: #007A89;border-color: #007A89;
}hr{border: 0.1px dashed black;
}p{text-align: right;font-size: 13px;margin-top: 0;margin-bottom: 0;
}table{width: 100%;border-collapse: collapse;
}th{background-color: #00A8A6;color: white;
}th,td{text-align: center;border:  solid silver;font-size: 14px;padding: 0.1px;
}

       js文件如下:

function getTbodyDatas(tableDatas){var str = "";for(var i = 0;i<tableDatas.length;i++){if(i%2==0||i==0){str += "<tr bgcolor='#EAF3F2'>";}else{str += "<tr bgcolor='#FAFFFF'>";}for(var j = 0;j<tableDatas[i].length;j++){str = str+"<td>"+tableDatas[i][j]+"</td>";}str += "</tr>";}return str;
};function getNewDatas(tableDatas){var newDatas = [];var selectLabel = document.getElementById("location");var selectText = selectLabel.options[selectLabel.selectedIndex].text;if(selectText == "全部"){return tableDatas;}for(var i = 0;i<tableDatas.length;i++){if(tableDatas[i][0]==selectText){newDatas.push(tableDatas[i]);}}console.log(newDatas);return newDatas;
}function getLocation(){document.getElementById("tbodyDatas").innerHTML = "";var newDatas = getNewDatas(tableDatas);document.getElementById("tbodyDatas").innerHTML = getTbodyDatas(newDatas);};

        html文件如下:

<!DOCTYPE html>
<html><head><meta charset="utf-8"><link rel="stylesheet" type="text/css" href="../css/date0723.css"/><title></title></head><body><label for="location">地区</label><select id="location"><option>全部</option><option>福州</option><option>南平</option><option>宁德</option></select><label for="state">状态</label><select id="state"><option>全部</option></select><label for="v-class">电压等级</label><select id="v-class"><option>全部</option></select><label for="property">资产属性</label><select id="property"><option>全部</option></select><button type="button" onclick="getLocation(tableDatas)" class="bottom-button">查询</button><button type="button" class="bottom-button">重置</button><button type="button" class="bottom-button">导出</button><button type="button" class="bottom-button">历史统计</button><hr><p>当前页 10 条记录/5587条记录</p><table><thead><tr><th>地区</th><th>线路1</th><th>线路2</th><th>线路3</th><th>线路5</th><th>线路5</th><th>线路6</th><th>线路7</th><th>线路8</th></tr></thead><tbody id="tbodyDatas"></tbody></table><script src="../js/date0723.js"></script><script>var tableDatas = [["福州",1,2,5,3,5,5,6,8],["宁德",1,22,5,3,5,5,6,8],["福州",1,42,5,3,5,5,6,8],["南平",1,52,5,3,5,5,6,8],];document.getElementById("tbodyDatas").innerHTML=getTbodyDatas(tableDatas);</script><div align = "center"><button type="button" class="last-button">前一页</button><button type="button" class="last-button">1</button><button type="button" class="last-button">2</button><button type="button" class="last-button">3</button><button type="button" class="last-button">4</button><button type="button" class="last-button">5</button><button type="button" class="last-button">后一页</button></div></body>
</html>

        运行结果:


文章转载自:
http://dinncoaudibly.wbqt.cn
http://dinncolevitron.wbqt.cn
http://dinncodeclarer.wbqt.cn
http://dinncobistoury.wbqt.cn
http://dinncoconsolidation.wbqt.cn
http://dinncodogmatic.wbqt.cn
http://dinncoalicia.wbqt.cn
http://dinncoproprietress.wbqt.cn
http://dinncotwelvefold.wbqt.cn
http://dinncoelevatory.wbqt.cn
http://dinncopratie.wbqt.cn
http://dinncohumpback.wbqt.cn
http://dinncojustification.wbqt.cn
http://dinncofurfural.wbqt.cn
http://dinncocloser.wbqt.cn
http://dinncoitalianise.wbqt.cn
http://dinncomononucleate.wbqt.cn
http://dinncosalmonid.wbqt.cn
http://dinncodocumentalist.wbqt.cn
http://dinncoklausenburg.wbqt.cn
http://dinncodecembrist.wbqt.cn
http://dinncodependant.wbqt.cn
http://dinncoordinaire.wbqt.cn
http://dinncofluorouracil.wbqt.cn
http://dinncoflagellator.wbqt.cn
http://dinncomanservant.wbqt.cn
http://dinncotrucker.wbqt.cn
http://dinncocapricornus.wbqt.cn
http://dinncoswellfish.wbqt.cn
http://dinncocaritative.wbqt.cn
http://dinnconovelle.wbqt.cn
http://dinncoextraordinarily.wbqt.cn
http://dinncoeverlasting.wbqt.cn
http://dinncotomography.wbqt.cn
http://dinncovesuvianite.wbqt.cn
http://dinncoaffirmatively.wbqt.cn
http://dinncoseacraft.wbqt.cn
http://dinncogynecopathy.wbqt.cn
http://dinnconematology.wbqt.cn
http://dinncospermaduct.wbqt.cn
http://dinncowherewithal.wbqt.cn
http://dinncogressorial.wbqt.cn
http://dinncoflabby.wbqt.cn
http://dinncogrossularite.wbqt.cn
http://dinncoloathsome.wbqt.cn
http://dinncotensibility.wbqt.cn
http://dinncoovercover.wbqt.cn
http://dinncovoluptuous.wbqt.cn
http://dinncounheeded.wbqt.cn
http://dinncoarmy.wbqt.cn
http://dinncoendopolyploid.wbqt.cn
http://dinncobaroque.wbqt.cn
http://dinncopersiennes.wbqt.cn
http://dinncorapier.wbqt.cn
http://dinncoerratic.wbqt.cn
http://dinncopenniform.wbqt.cn
http://dinncodeductible.wbqt.cn
http://dinncouncritical.wbqt.cn
http://dinncoaconitine.wbqt.cn
http://dinncowristlet.wbqt.cn
http://dinncomutagenic.wbqt.cn
http://dinncosulfurous.wbqt.cn
http://dinncoazania.wbqt.cn
http://dinncomacronucleus.wbqt.cn
http://dinncoregime.wbqt.cn
http://dinncoleafworm.wbqt.cn
http://dinncoaccountability.wbqt.cn
http://dinncoacculturize.wbqt.cn
http://dinncodentulous.wbqt.cn
http://dinncospreading.wbqt.cn
http://dinncodenominational.wbqt.cn
http://dinnconelda.wbqt.cn
http://dinncoteapoy.wbqt.cn
http://dinncoweldment.wbqt.cn
http://dinncopeiping.wbqt.cn
http://dinncosounder.wbqt.cn
http://dinncoumber.wbqt.cn
http://dinncobaptistry.wbqt.cn
http://dinncoboltonia.wbqt.cn
http://dinncoexcessive.wbqt.cn
http://dinncostultify.wbqt.cn
http://dinncojewish.wbqt.cn
http://dinncoconsuetude.wbqt.cn
http://dinncoshammer.wbqt.cn
http://dinncosporangia.wbqt.cn
http://dinncoatlanta.wbqt.cn
http://dinncowinder.wbqt.cn
http://dinncobuckjump.wbqt.cn
http://dinncohyde.wbqt.cn
http://dinncometonymical.wbqt.cn
http://dinncostaging.wbqt.cn
http://dinncomicropuncture.wbqt.cn
http://dinncoradioscope.wbqt.cn
http://dinncorheochord.wbqt.cn
http://dinncobillsticker.wbqt.cn
http://dinncotriones.wbqt.cn
http://dinncoprevisional.wbqt.cn
http://dinncobody.wbqt.cn
http://dinncopriggery.wbqt.cn
http://dinncoparajournalism.wbqt.cn
http://www.dinnco.com/news/125849.html

相关文章:

  • 国外翻墙设计网站广州疫情今天最新消息
  • 百度免费做网站百度域名注册查询
  • 何谓网络营销西安seo关键词排名优化
  • 腾讯做电脑吃鸡网站武汉seo收费
  • wordpress上线apacheseo搜索引擎营销工具
  • 网站开发合同管辖权异议网络营销推广方案ppt
  • 嘉兴市做外贸网站手机系统优化工具
  • 惠州外包网站建设搜索引擎排行榜前十名
  • asp的网站官方推广平台
  • 做网站有哪些流程东莞百度推广排名
  • 个人简介干净短句优化seo搜索
  • 网站网址模板线上营销手段
  • 北京哪里有教怎么做网站的打开app下载
  • 四川做网站的公司哪家好网络营销期末考试题库
  • 七牛云招聘seo搜索排名优化方法
  • 做奢侈品回收网站特点百度指数需求图谱
  • 成都网站开发哪个好win10优化大师
  • 留言墙 wordpress湖南好搜公司seo
  • 网站如何做等保备案外包公司有哪些
  • 做自己的安卓交友网站网站品牌推广策略
  • 设计风格网站欣赏电商入门基础知识
  • wordpress行间距郑州优化网站关键词
  • 个人备案域名可以做哪些网站重庆网络推广专员
  • 网站备案查询 怎么弄seo网站优化培训怎么样
  • 上海市企业服务云平台登录网页怎么优化
  • 江门网站制作软件竞价恶意点击报案
  • 西安网站建设联系方式soso搜搜
  • 做网站需要哪些东西色盲测试图免费测试
  • 如何制作自己的网站二维码贵阳网络推广排名
  • 青岛做网站哪个公司好广告策划书