zoukankan      html  css  js  c++  java
  • 〖網頁·HTML〗HTML笔记

    <p>…</p>
    分段落现实

    <div>…</div> <span>…</span>
    分块显示

    <ol>
    <li>…</li>
    </ol>
    是用来标签定义有序列表

    <ul>
    <li>…</li>
    </ul>
    是用来标签定义无序列表

    <br> 换行
    <nobr>…</nobr> 不换行
    <pre></pre>保留原有格式
    <marquee></marquee>跑马灯效果
    <blockquote></blockquote>分离文本
    <dl>定义列表。
    <dt>定义列表中的项目。
    <dd>定义列表中项目的描述。

    对齐—align
    <h1 align=“”>
    <div align=“”>
    <table align=“”>
    <hr align=“”>
    ……
    取值:left right center top middle bottom
    <center>……</center>
    对齐到中间

    表格—重点掌握
    <table width=“” align=“” border=“”>
    <tr>
    <th width=“” align=“”>…</th>
    <th>…</th>…
    </tr>
    <tr>
    <td width=“” align=“” valign=“”>…</td>
    <td rowspan=“” colspan=“” bgcolor=“”>…</td>
    ……
    </tr>
    </table>

    文本框 text
    <input type=“text” name=“” value=“” maxlength=“” size=“”>
    maxlength – 最大字符长度

    size – 文本框宽度(字符)
    密码区域—特殊的单行文本输入框 password
    <input type=“password” name=“” value=“” size=“” maxlength=“”>

    单选按钮
    <input type=“radio” name=“” value="" checked>
    典型用法 : 同一名字,不同的值
    错误的用法 : 不同的名字

    复选框
    <input type=“checkbox” name=“” value=“” checked>
    典型的用法 : 同一name,不同的value

    隐藏域
    <input type=“hidden” name=“” value=“”>

    列表框
    <select name=“” size=“” multiple>
    <option value=“” selected>…</option>
    <option value=“”>…</option>
    ……
    </select>
    Multiple 表示多重列表框,可以多选
    Selected 被选中

    多行多列文本框
    <textarea rows=“” cols=“” wrap=“”>…</textarea>
    Rows: 行数
    Cols: 列数
    Wrap:
    Off : 不换行
    Soft: 自动换行,并且如果行末有英文单词,会将整个单词移到下一行
    Hard: 自动换行,但会截断行末的单词

    <input type=button name=“” value=“”>
    按下该按钮没有反映
    <input type=submit name=“” value=“”>
    按下该按钮,该form中所有的输入信息将被提交到服务器
    <input type=reset name=“” value=“”>
    按下该按钮,该form中所有的输入部分将被重置
    <input type=“image” src=“”>
    点击图片提交

    框架
    <frameset cols=“20%,*”>
    <frame name=“left” src=“a.htm”>
    <frameset rows=“40%,*”>
    <frame name=“righttop” src=“b.htm”>
    <frame name=“rightbottom” src=“c.htm”>
    </frameset>
    </frameset>

    链接、表单与框架
    <a href=“” target=“”>…</a>
    <form action=“” target=“”>…</form>
    Target:
    Frame name
    _blank 新窗口
    _self 本窗口
    _parent 父窗口(本窗口的上一级窗口)
    _top 浏览器窗口

  • 相关阅读:
    剑指Offer-Python(6-10)
    Python对MySQL进行增删查改
    剑指Offer-Python(1-5)
    转载:Python中collections模块
    读取单词文件并查某个单词出现的次数
    Python正则表达式-换行的匹配
    Python爬虫-换行的匹配
    转载:Pycharm的常用快捷键
    Python 正则表达式
    Python的类与对象
  • 原文地址:https://www.cnblogs.com/shaoweinan/p/2415617.html
Copyright © 2011-2022 走看看