/*万能清除法*/
    *{padding:0;margin:0;}
    li{list-style: none;}
    img{vertical-align:top;border: 0;}
    a{text-decoration: none;}
    .cl:after{content: "";display: block;clear: both;height: 0;overflow: hidden;visibility: hidden;}
    .cl{zoom:1;}
    /*外部样式*/
    <link rel="stylesheet" href="../css/ .css">
    /*初始化*/
    body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,dd,input{padding: 0;margin: 0;}
    li{list-style: none;}
    a{text-decoration: none;}
    img{vertical-align: top;border: 0;}
    html{font-family: "微软雅黑";font-size: 12px;color: #333;}
    .cl:after{content: "";display: block;clear: both;height: 0;overflow: hidden;visibility: hidden;}
    .cl{zoom: 1;}
    .fl{float: left;}
    .fr{float: right;}
    /*响应式布局*/
    @media screen and (min-width: 320px) and (max-width: 480px){
    body{}
    }
    @media screen and (min-width: 481px) and (max-width: 768px){
    body{background-color: #ff0;}
    }
    @media screen and (min-width: 769px) and (max-width: 1200px){
    body{background-color: #0f0;}
    }
    @media screen and (min-width: 1201px) {
    body{background-color: #999;}
    }
 响应式初始化
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    /*去掉点击时的外边框*/
    input:focus,textarea,select{outline: none;}
    textarea{resize:none;}
    button{cursor:pointer;}
    
    /*伪类选择器 */
    :nth-child(){}
:nth-of-type(1) 出现的次数
    .a div:nth-child(2){color: red;}
    .a p:nth-child(5){color: red;}
    ul li:nth-child(even){}
    ul li:nth-child(odd){}
    ul li:first-child{}
    ul li:last-child{}
    /* 过渡*/
     transition:s
 
    /*html5格式*/
    <header>
        网页上面公共的头部
    </header>
    <div>
        ssssss
    </div>
    <footer>网页上面公共的底部</footer>
    <nav>
        <ul>
            <li></li>
        </ul>
    </nav>
    <section>区块</section>
    <aside>侧边栏</aside>
    <article>文章</article>
    <mark>高亮显示(行内标签)</mark>
    <canvas>画布</canvas>
    <input type="text" list="a">
    <datalist id="a">
        <option value="111">
        <option value="112">
        <option value="113">
        <option value="aa">
        <option value="ad">
        <option value="cc">
        <option value="cr">
    </datalist>
    <!-- novalidate取消验证 -->
    <form novalidate>
        <!-- required必填字段 -->
        <!-- autofocus自动获取焦点 -->
        *<input type="number" required autofocus>
        <input type="search">
        <input type="range">
        <input type="color">
        <input type="date">
        <input type="email">
        <input type="url">
        <textarea name="" id="" cols="30" rows="10"></textarea>
        <input type="submit">
        <button type="submit"></button>
    </form>
    <!-- video必须添加自动播放属性 -->
    <!-- 网页所支持的视频格式 webm/ogg/mp4 -->
    <!-- loop循环播放 -->
    <video src="../video/movie.webm" autoplay controls>对不起,你的浏览器版本太低,</video>
    <audio src="../video/zhoujie.mp3" autoplay loop></audio>
    /*列表*/
    .t{width: 100%;height: 400px;border:1px solid red;border-collapse:collapse;table-layout:fixed;}
    .t th,td{border: 1px solid red;}
<table class="t" cellspacing="0" cellpadding="0">
        <caption>课程表</caption>
        <thead>
            <tr>
                <th class="a1">aaaaaaaaaaaaaaaaaaaaa</th>
                <th>星期一</th>
                <th>星期一</th>
                <th>星期一</th>
                <th>星期一</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>111</td>
                <td>111</td>
                <td>111</td>
                <td>111</td>
                <td>111</td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td>111</td>
                <td>111</td>
                <td>111</td>
                <td>111</td>
                <td>111</td>
            </tr>
        </tfoot>
    </table>
第一种
<table width="624" height="362" bgcolor="#eeeeee" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="pink">
  <tr align="center">
    <td valign="bottom" width="101">会员姓名</td>
    <td width="205">111</td>
    <td width="103">111</td>
    <td width="205">111</td>
  </tr>
  <tr align="center">
    <td>&nbsp;</td>
    <td colspan="3"></td>
  </tr>
  <tr align="center">
    <td>111</td>
    <td colspan="3"></td>
  </tr>
</table>
 
第二种
.t{width: 100%;height: 400px;border:1px solid red;border-collapse:collapse;table-layout:fixed;}
.t th,td{border: 1px solid red;}
<table class="t" cellspacing="0" cellpadding="0">
  <caption>课程表</caption>
  <thead>
  <tr>
    <th class="a1">aaaaaaaaaaaaaaaaaaaaa</th>
    <th>星期一</th>
    <th>星期一</th>
    <th>星期一</th>
    <th>星期一</th>
  </tr>
  </thead>
  <tbody>
  <tr>
    <td>111</td>
    <td>111</td>
    <td>111</td>
    <td>111</td>
    <td>111</td>
  </tr>
  </tbody>
</table>
 

html5样式初始化,你值得拥有!!的更多相关文章

  1. PC端和移动APP端CSS样式初始化

    CSS样式初始化分为PC端和移动APP端 1.PC端:使用Normalize.css Normalize.css是一种CSS reset的替代方案. 我们创造normalize.css有下面这几个目的 ...

  2. pc端样式初始化

    pc端样式初始化: /* http://meyerweb.com/eric/tools/css/reset/ /* http://meyerweb.com/eric/tools/css/reset/ ...

  3. HTML5样式和列表、CSS链接的四种状态

    一.HTML5样式 1.标签: <style>:样式定义: <link>:资源引用: 2.属性: type="text/css":引入文档类型: rel=& ...

  4. css样式初始化

    不同的浏览器对有些标签的默认显示是不同的,对css样式初始化可以实现样式的统一,消除不同浏览器间页面显示的差异性... 一般初始化方式为:*{margin:0:padding:0:}

  5. 一天搞定CSS: 标签样式初始化(CSS reset)及淘宝样式初始化代码--09

    样式初始化:是指对HTML中某些标签的默认样式进行清除 样式初始化目的: 不同浏览器的默认样式不一样,若不清理,会导致相同的代码在浏览器中解析结果不一样,为了避免这种情况,所以需要进行样式初始化. 代 ...

  6. 样式初始化(copy)

    css样式初始化reset文件 pc端 移动端 公共样式 1.pc端 /* normalize.css */ html { line-height: 1.15; /* 1 */ -ms-text-si ...

  7. HTML5样式、链接和表格

    -------------------siwuxie095 HTML5 样式 1.标签 <style> 标签:样式定义 <link> 标签:资源引用 2.属性 rel:用于指定 ...

  8. 2017-11-29 HTML5样式、链接和表格

    HTML5样式.链接和表格HTML5列表<ol> 有序列表<ul> 无序列表<li> 列表项 <dl> 列表<dt> 列表项<dd&g ...

  9. CSS样式初始化代码

    CSS样式初始化代码 为什么要初始化CSS? 建站老手都知道,这是为了考虑到浏览器的兼容问题,其实不同浏览器对有些标签的默认值是不同的,如果没对CSS初始化往往会出现浏览器之间的页面差异.当然,初始化 ...

随机推荐

  1. Google开源PDF软件库

    Google开启了一个叫做PDFium的PDF软件库开源项目,开发人员能够将其纳入各种平台应用中. 据Google的Chromium项目的布道师François Beaufort称,PDFium将被包 ...

  2. 201871010109-胡欢欢 《面向对象程序设计(java)》第十五周学习总结

    正文开头: 项目 内容 这个作业属于哪个课程 https://home.cnblogs.com/u/nwnu-daizh/ 这个作业的要求在哪里 https://www.cnblogs.com/nwn ...

  3. 201871010118-唐敬博《面向对象程序设计(java)》第八周学习总结

    博文正文开头格式:(2分) 项目 内容 这个作业属于哪个课程 https://www.cnblogs.com/nwnu-daizh/ 这个作业的要求在哪里 https://www.cnblogs.co ...

  4. uiautomator输入中文实例

    package com.demo3; import jp.jun_nama.test.utf7ime.helper.Utf7ImeHelper; import com.android.uiautoma ...

  5. mysql版本引起的驱动问题

    mysql版本引起的驱动问题 com.mysql.jdbc.Driver 是 mysql-connector-java 5中的, com.mysql.cj.jdbc.Driver 是 mysql-co ...

  6. golang和python互相调用

    http://blog.yuanzhaoyi.cn/2018/06/27/golang_python.html python3-ctypes: https://docs.python.org/3.5/ ...

  7. c#窗体之登录页(已连接数据库)

    效果图: 源码: 页面: using System; using System.Collections.Generic; using System.ComponentModel; using Syst ...

  8. 批处理命令 call

    call 命令 CALL命令可以在批处理执行过程中调用另一个批处理,当另一个批处理执行完后,再继续执行原来的批处理 CALL command 调用一条批处理命令,和直接执行命令效果一样,特殊情况下很有 ...

  9. [LeetCode] 76. Minimum Window Substring 最小窗口子串

    Given a string S and a string T, find the minimum window in S which will contain all the characters ...

  10. convert decimal to binary

    public class Solution { public static void main(String[] args) { ; String str = ""; ) { ; ...