zoukankan      html  css  js  c++  java
  • 【快速查询】

    此篇仅记录不常用的一些方法。【持续更新...】

    1、如何让注册登录后面的文本框中默认字为灰色?

    <form method="get" action="http://www.baidu.com" style="margin-left: 300px; margin-top: 300px;">
                <table border="1px">
                    <tr>
                        <td>登录名:</td>
                        <td>
                            <input type="text" name="userid" value="" placeholder="仅支持数字与字母"/>
                        </td>
                        
                    </tr>
                </form>
        </body>
    </html>


    2、上传文件

    不同浏览器显示不同。

        <table>
            
            <tr>
                <td>你想要的片:</td>
                <td>
                    <input type="file" id="a"/>
                    <label for="a">好片</label>
                    
                </td>
            </tr>
    
        </table>

    也可以一句话就写成:

    <input type="file" name="好片"/>


    3、网页病毒(纯属玩笑)

    使用iframe的嵌入网页来实现。当嵌入的网页width为0,height为0,frameborder的值为0、scroling为no时,在整个页面中便无法显示新嵌入的网页页面,但是后台依旧访问了新嵌入的网页。

    <iframe src="http://www.baidu.com" width="0" height="0"frameborder="0" scrolling="no"></iframe>


     4、滚动效果

    HTML5中的<marquee>标签,主要做滚动效果的。

    <marquee>滚动文字</marquee>

    默认滚对方向是从右到左,如果想要调整方向,可以在标签中加入属性:

    当然,图片也是可以的。

        <marquee direction="">    
            <img src="img/1.gif"/>
        </marquee>

    5、给文字做标记背景(默认黄)

    <mark>: 标记

    <marquee direction="">    
            <img src="img/1.gif"/>
            <span>用<mark>一万小时</mark>学习做好一名程序员</span>
        </marquee>

  • 相关阅读:
    python运行错误---TabError: Inconsistent use of tabs and spaces in indentation
    python运行错误------Non-UTF-8 code
    opencv错误(Unhandled expection at at 0x0007EEE...)
    fatal error LNK1112: 模块计算机类型“X86”与目标计算机类型“x64”冲突——我的解决方案
    基础术语
    opencv
    图像归一化
    人脸相关数据库
    堆排序
    abp学习(二)
  • 原文地址:https://www.cnblogs.com/zrifq/p/6212810.html
Copyright © 2011-2022 走看看