zoukankan      html  css  js  c++  java
  • html的表单 框架以及css的字体大小,颜色 样式

    表单是一个包含表单元素的区域。

    表单元素是允许用户在表单中输入内容,比如:文本域(textarea)、下拉列表、单选框(radio-buttons)、复选框(checkboxes)等等。

    表单使用表单标签 <form> 来设置:

    写法为;<input type="text" name=“”  value=“”>用户名

                <input type="password‘’ name=“” value="'>密码

               <input type="checkbox“” name=“” value="'>复选框

              <input type="radio“” name=“” value="'>单选框

                <input type="hidden“” name=“” value="'>隐藏框

               <select name="‘ ’id=""> <option value></option>下拉列表框

                <textarea name=">文本域

                <input type="file">打开文件

                <input type="reset“” name=“” value="'>重置

                 <input type="submit“” name=“” value="'>提交

    2 frame框架的组成一个页面如果拆分左右或者上下两个,左右结构的话是cols 上下结构的话是rows,frame框架中不能有head body的出现,是单独的引用表格,示例如下

    复制代码
    <html>
    <frame>
    <frameset rows="80%,20%">
        <frame src="head.html" frameborder="0" noresize scrolling=“no”>
        <frameset cols="70%,30%">
            <frame src="nav.html" frameborder="0" noresize name=“nav”>
     <frameset src="kingdom.html" noresize name="room">
    <iframe src="demo_iframe.htm" name="iframe_a"></iframe> <p><a href="http://www.baidu.com" target="iframe_a">百度</a></p>
    </frameset> </html>
    复制代码

    其中head是单独的一个文档代码我们可以引用过来,就是正常的写代码就可以,引用的frame当中就可以!

    3 css的字体,在html中如果想改变字体的大小,颜色我们需要单独创立一个以.css 为扩展名的文件,用一个span注释代表,然后把html中要输入的字体颜色通过css来实现,示例如下,html部分

    复制代码
     <div style="color:orange; font-size:100px;">hello,world</div>
        <div id="d1" style="color:brown">hello,world</div>
        <b>第一名</b>
        <div id="d1">hello,world</div>
        <p class="p1">欢迎光临</p>
        <span>第一节</span>
        <br>
        用户名:<input type="text" name="" value="text" align="left">
        <br>
        密码:<input tyle="password" name="" value="password">
        <br>
    复制代码

    css部分

    复制代码
    span {
        font-size: 20px;
        border: 2px solid #000;
    }
    
    #d1 {
        font-size: 100px;
        color: red
    }
    
    .p1 {
        color: rgb(82, 235, 108);
    }
    
    [type="text"] {
        background: #000
    }
    
    [type="password"] {
        background: #000
    }
    复制代码

    4 如何在一个网页中插入音频,视频其基本格式为

    <audio src=""> controls autoplay(自动播放)>

    <source src=""  type="audio/ogg" />
    <source src="" type="audio/mpeg" />  这两个为音频的不公格式,每个浏览器支持的格式不一样
    视频播放是一样的模式都是 video src 等模式

                 

  • 相关阅读:
    31 整数中1出现的次数(从1到n整数中1出现的次数)
    算法寒假实习面试经过之 十一贝(offer) 联想研究院(电话一面 被拒)
    百度feed 寒假实习 一面二面(offer)
    30连续子数组的最大和
    29最小的K个数
    28数组中出现次数超过一半的数字
    MySQL操作数据库和表的基本语句(DDL)
    Oracle————存储过程与函数
    Oracle清空数据库中数据表数据的方法
    Linux之常用Shell脚本总结
  • 原文地址:https://www.cnblogs.com/mmore123/p/11968946.html
Copyright © 2011-2022 走看看