搜索
首页web前端css教程写一个简单的CSS表

写一个简单的CSS表

Feb 20, 2017 pm 12:54 PM
css

写一个简单的CSS表

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title>Lite List</title>
  <style type="text/css">
    table   { border: 1px solid #aaa; width: 100%; background-color:#ccc; color:black; font-family: arial, helvetica, sans-serif; font-weight: bold; font-size:120%; margin-bottom: 10px; }
    td      { color: #333; vertical-align: middle; }
    pre     { font-family: Verdana, sans-serif; font-size: 80%; border-width: 1; border-left: 1; border-right: 0; border-top: 0; border-bottom: 0; padding-left: 7px; border-color: #666; border-style: solid; margin-left: 20px; margin-top: 0px; margin-bottom: 10px; }
    .button { display: none; font-family: Arial, sans-serif; background-color: white; border-width: 1; border-style: solid; border-color: #999; font-size: 14px; width: 18px; height: 16px; cursor: pointer; text-decoration: none; margin: 2px; font-weight: 700; color: #900; }
    .close  { padding-left: 1px; padding-right: 2px; }
    .open   {}
    .ver     { color: #900; }
  </style>
  <script><!--
  function Expand( x )
  {
      x = x.replace( /Expand/, "" );
      document.getElementById( "Block" + x ).style.display = "inline";
      document.getElementById( "Expand" + x ).style.display = "none";
      document.getElementById( "Collapse" + x ).style.display = "inline";
  }
  function Collapse( x )
  {
      x = x.replace( /Collapse/, "" );
      document.getElementById( "Block" + x ).style.display = "none";
      document.getElementById( "Expand" + x ).style.display = "inline";
      document.getElementById( "Collapse" + x ).style.display = "none";
  }
  function NumberIncremental( tagType, tagId, prefixId )
  {
    var el = document.getElementsByTagName( tagType );       
    var which = 0;
    for( index=0; index<el.length; index++ )
    {
      if( el[index].id == tagId )
      {
        el[index].id = prefixId + which++;
        el[index].display = "inline";
      }
    }
  }
  function Init()
  {
    NumberIncremental( "div", "Blocker", "Block" );
    NumberIncremental( "a", "Collapser", "Collapse" );
    NumberIncremental( "a", "Expander", "Expand" );
    Expand( "Expand0" );
    for( index=1;; index++ )
    {
      if( document.getElementById( "Block"+index ) )
        Collapse( "Collapse"+index );
      else
        break;
    }    
  }
  //-->
  </script>
</head>

<body onload="Init();">
<table>
<tr>
<td align="center" nowrap width="35">
<a id="Collapser" onclick="Collapse(this.id);" class="close button"> - </a>
<a id="Expander" onclick="Expand(this.id);" class="open button"> + </a>
</td>
<td width="98%">Class.1 (<span class="ver">1.0.1</span> - <span class="ver">1.0.6</span>)</td>
</tr>
</table>
<div id="Blocker">
<pre class="brush:php;toolbar:false">
Text 1 &quot;1&quot;.
Text 1 &quot;2&quot;.
Text 1 &quot;3&quot;.
End.
- + Class.2 (2.0.1 - 2.0.5)
Text 2 &quot;1&quot;.
Text 2 &quot;2&quot;.
Text 2 &quot;3&quot;.
End.
- + Class.3 (3.0.1 - 3.0.5)
Text 3 &quot;1&quot;.
Text 3 &quot;2&quot;.
Text 3 &quot;3&quot;.
End.

更多写一个简单的CSS表相关文章请关注PHP中文网!

声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
构建多向布局构建多向布局Apr 12, 2025 am 10:15 AM

CSS中有一些新功能可以帮助我们轻松构建不同方向和语言的布局。本文是关于CSS的

CSS中的宽度/高度与宽度/高度HTML属性之间的差异是什么?CSS中的宽度/高度与宽度/高度HTML属性之间的差异是什么?Apr 12, 2025 am 10:13 AM

一些HTML元素接受宽度和高度作为属性。有些没有。这些属性有时被称为呈现属性。关于它们的问题是,他们被任何其他样式信息所覆盖。那

净冠军净冠军Apr 12, 2025 am 10:10 AM

我们今年再次在这里再次成为赞助商,这真是太棒了。大粉丝。我们自己的莎拉·德拉斯纳(Sarah Drasner)是DX(开发人员体验)负责人

高度爱高度爱Apr 12, 2025 am 10:09 AM

最近看到了很多高度动作。它是静态站点发电机世界中的一个较小的玩家,但我认为它具有巨大的潜力,因为如何

多脚步滑块:特定的两次案件多脚步滑块:特定的两次案件Apr 12, 2025 am 10:07 AM

几年前,当Lea Verou在上面写了一篇文章时,这是我第一次出现的概念。自此,可悲的是从规格中删除了多范围滑块

通过用于Web组件的样式选项进行思考通过用于Web组件的样式选项进行思考Apr 12, 2025 am 10:02 AM

您将样式放在网络组件中的位置?

了解异步等待了解异步等待Apr 12, 2025 am 09:55 AM

在为Web编写代码时,最终您需要做一些可能需要一些时间才能完成的过程。 JavaScript可以真正多任务,所以

最好的第三方组件最好的第三方组件Apr 12, 2025 am 09:54 AM

我是Web组件的粉丝。我认为这是几乎任何规模建立网站的非常好的方法(也许是绝对是最多的

See all articles

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

AI Hentai Generator

AI Hentai Generator

免费生成ai无尽的。

热门文章

R.E.P.O.能量晶体解释及其做什么(黄色晶体)
3 周前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳图形设置
3 周前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您听不到任何人,如何修复音频
3 周前By尊渡假赌尊渡假赌尊渡假赌
WWE 2K25:如何解锁Myrise中的所有内容
3 周前By尊渡假赌尊渡假赌尊渡假赌

热工具

Atom编辑器mac版下载

Atom编辑器mac版下载

最流行的的开源编辑器

螳螂BT

螳螂BT

Mantis是一个易于部署的基于Web的缺陷跟踪工具,用于帮助产品缺陷跟踪。它需要PHP、MySQL和一个Web服务器。请查看我们的演示和托管服务。

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

功能强大的PHP集成开发环境

EditPlus 中文破解版

EditPlus 中文破解版

体积小,语法高亮,不支持代码提示功能

SecLists

SecLists

SecLists是最终安全测试人员的伙伴。它是一个包含各种类型列表的集合,这些列表在安全评估过程中经常使用,都在一个地方。SecLists通过方便地提供安全测试人员可能需要的所有列表,帮助提高安全测试的效率和生产力。列表类型包括用户名、密码、URL、模糊测试有效载荷、敏感数据模式、Web shell等等。测试人员只需将此存储库拉到新的测试机上,他就可以访问到所需的每种类型的列表。