search
HomeWeb Front-endHTML Tutorial如何让网页一次过展开树状里面全部的内容_html/css_WEB-ITnose

本帖最后由 engchiang 于 2014-02-07 02:40:37 编辑

html css 表格 class 网页

  小弟是马来西亚人,没有编程基础,google 和 yahoo search很久了都找不到答案,是这样的,我每天都需要加班帮老板做一些额外的工作,每天需要从一个网页复制表格里面的内容然后黏贴进excel。
  该网站是需要老板用自己的密码登入之后才会打开里面的资料的,因此我没有办法提供该网址,但我把该网页的html复制及黏贴进这个网站 jsfiddle.net ,然后生成以下这3个网址: 
“网址1”  http://jsfiddle.net/engchiang/ghP2a/5/
“网址2”  http://jsfiddle.net/engchiang/ghP2a/6/
“网址3”  http://jsfiddle.net/engchiang/ghP2a/7/

左上角是html,右下角显示的结果就是我每天必须复制的表格。
“网址1”所显示的是刚刚打开该网页时,每个网页有一个表格,每个表格有10行,每一行的第一格是链接,每一行的内容都隐藏起来。

“网址2”是当我点击第一行的链接时,所显示的隐藏内容。表格第一行的html会变成 tr class="shown" , 其它9行是 tr class="hidden"


“网址3”是当我点击第二行的链接时,所显示的隐藏内容,但第一行的内容会自动隐藏起来。表格第二行的html会变成 tr class="shown" , 但表格第一行会变成 tr class="hidden" disabled="true"


当我点击第三行的链接时,会显示第三行的隐藏内容,但第二行的内容又会自动隐藏起来...

  因此我必须一个一个链接点击打开隐藏内容,再复制及黏贴进excel,问题是每天我都需要复制超过100个表格里面的隐藏内容,每天需要加班1,2个小时,更严重的是没有得到任何加班费。


想请教一下这里的高人,用什么代码可以不需要点击就能够显示,小弟将感激不尽!!

回复讨论(解决方案)

这个是小问题,关键是你能改那个网站么?

火狐浏览器。F5一下。如果有隐藏属性吧隐藏属性去掉。如果没有这个就不知道啦!

这个是小问题,关键是你能改那个网站么?

我通过修改html的 font-size 或 color ,网页都能够转变。应该也能够修改 隐藏/显示。

火狐浏览器。F5一下。如果有隐藏属性吧隐藏属性去掉。如果没有这个就不知道啦!

我没有任何编程基础,都是网上搜索一点一点学的,要如何才能够去掉隐藏属性?

displayed  Visibled  就是这些


这个是小问题,关键是你能改那个网站么?

我通过修改html的 font-size 或 color ,网页都能够转变。应该也能够修改 隐藏/显示。 这个得看他的数据是不是一次性加载。

我没有任何编程基础,如何才能够知道数据是不是一次性加载?

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What is the difference between an HTML tag and an HTML attribute?What is the difference between an HTML tag and an HTML attribute?May 14, 2025 am 12:01 AM

HTMLtagsdefinethestructureofawebpage,whileattributesaddfunctionalityanddetails.1)Tagslike,,andoutlinethecontent'splacement.2)Attributessuchassrc,class,andstyleenhancetagsbyspecifyingimagesources,styling,andmore,improvingfunctionalityandappearance.

The Future of HTML: Evolution and TrendsThe Future of HTML: Evolution and TrendsMay 13, 2025 am 12:01 AM

The future of HTML will develop in a more semantic, functional and modular direction. 1) Semanticization will make the tag describe the content more clearly, improving SEO and barrier-free access. 2) Functionalization will introduce new elements and attributes to meet user needs. 3) Modularity will support component development and improve code reusability.

Why are HTML attributes important for web development?Why are HTML attributes important for web development?May 12, 2025 am 12:01 AM

HTMLattributesarecrucialinwebdevelopmentforcontrollingbehavior,appearance,andfunctionality.Theyenhanceinteractivity,accessibility,andSEO.Forexample,thesrcattributeintagsimpactsSEO,whileonclickintagsaddsinteractivity.Touseattributeseffectively:1)Usese

What is the purpose of the alt attribute? Why is it important?What is the purpose of the alt attribute? Why is it important?May 11, 2025 am 12:01 AM

The alt attribute is an important part of the tag in HTML and is used to provide alternative text for images. 1. When the image cannot be loaded, the text in the alt attribute will be displayed to improve the user experience. 2. Screen readers use the alt attribute to help visually impaired users understand the content of the picture. 3. Search engines index text in the alt attribute to improve the SEO ranking of web pages.

HTML, CSS, and JavaScript: Examples and Practical ApplicationsHTML, CSS, and JavaScript: Examples and Practical ApplicationsMay 09, 2025 am 12:01 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML is used to build web page structure; 2. CSS is used to beautify the appearance of web pages; 3. JavaScript is used to achieve dynamic interaction. Through tags, styles and scripts, these three together build the core functions of modern web pages.

How do you set the lang attribute on the  tag? Why is this important?How do you set the lang attribute on the tag? Why is this important?May 08, 2025 am 12:03 AM

Setting the lang attributes of a tag is a key step in optimizing web accessibility and SEO. 1) Set the lang attribute in the tag, such as. 2) In multilingual content, set lang attributes for different language parts, such as. 3) Use language codes that comply with ISO639-1 standards, such as "en", "fr", "zh", etc. Correctly setting the lang attribute can improve the accessibility of web pages and search engine rankings.

What is the purpose of HTML attributes?What is the purpose of HTML attributes?May 07, 2025 am 12:01 AM

HTMLattributesareessentialforenhancingwebelements'functionalityandappearance.Theyaddinformationtodefinebehavior,appearance,andinteraction,makingwebsitesinteractive,responsive,andvisuallyappealing.Attributeslikesrc,href,class,type,anddisabledtransform

How do you create a list in HTML?How do you create a list in HTML?May 06, 2025 am 12:01 AM

TocreatealistinHTML,useforunorderedlistsandfororderedlists:1)Forunorderedlists,wrapitemsinanduseforeachitem,renderingasabulletedlist.2)Fororderedlists,useandfornumberedlists,customizablewiththetypeattributefordifferentnumberingstyles.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment