zoukankan      html  css  js  c++  java
  • 如何用html把文本框外观格式设为只显示底部的横线

     html把文本框外观格式设为只显示底部的横线

    <style>
    input[type='text']{background:none;border:none;border-bottom:1px solid #ddd;}//所有input框类型为text的
    .inp{background:none;border:none;border-bottom:1px solid #ddd;}
    </style>
    <input type="number" value="" class="inp"/>

    参考:https://zhidao.baidu.com/question/1242984244365752339.html

    设置图片居中

    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <
    style> *{ padding:0px; margin:0px; font-family:"微软雅黑"; } .homeback { width: 100%; height: 100%; position: fixed; top: 0px; left: 0px; right: 0px; margin-left: auto; margin-right: auto; z-index: -1; } .div2 { position: absolute; } @media screen and (max- 1100px) { /*当屏幕尺寸小于1100px时,应用下面的CSS样式*/ .icontype { width:40%;margin-top:20%;margin-left:30% } .grouptype { width:50%;margin-top:60%;margin-left:25% } .checktype { width: 35%; margin-top: 90%; margin-left: 58% } .searchtype { width: 30%; margin-top: 68%; margin-left: 33% } } @media screen and (min- 1100px) { /*当屏幕尺寸大于1100px时,应用下面的CSS样式*/ .icontype { width: 30%; margin-top: 5%; margin-left: 35% } .grouptype { width: 30%; margin-top: 25%; margin-left: 35% } .checktype { width: 20%; margin-top: 40%; margin-left: 58% } .searchtype { width: 15%; margin-top: 32%; margin-left: 42% } } .input2{ border: none; background: none; border-bottom: solid 1px #0c0c0c; } </style>
            <img class="homeback" src="../Images/ECheck/背景拷贝.png" />
            <img class="div2 icontype" src="../Images/ECheck/icon.png" />
            $(function () {
                $("#bodyground").css({ "width": screenwidth + "px", "height": screenwidth + "px" });
            });
    
            //获取屏幕总高度,宽度
            var screenheight = window.screen.availHeight
            var screenwidth = window.screen.availWidth
  • 相关阅读:
    Java开发环境搭建——CentOS配置
    Sqlite使用
    Java加载资源文件几种方法
    JavaScript工具代码
    Mysql分区的技能
    HBase数据迁移至Hive
    Shell或notepad连接虚拟机操作
    json的工具按照键进行排序
    Eclipse中SVN修改的*星号没了,解决方法
    同时安装不同版本JDK遇到的问题
  • 原文地址:https://www.cnblogs.com/yingyigongzi/p/9600124.html
Copyright © 2011-2022 走看看