zoukankan      html  css  js  c++  java
  • 登陆界面输入框内加入小图标的样式


     <input type="text" class="inputAttr1" name="activityUserValue" for="reservation" placeholder="注册邮箱/用户名"/>
    .inputAttr1{
        background: url("../images/user_icon.png")no-repeat 315px ;
         350px;
        height: 40px;
        border-radius:5px;
        border: 1px solid #999999;
        box-shadow: 1px 1px 3px #cccccc;
        padding-left: 10px;
        margin-right: 10px;
    }
    这样也好简单的。。。

    -----------------------------------------------------------------------------------------------------------------------

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style>
    .text{border:solid 2px #ccc;400px;height:40px;background:url(http://d.lanrentuku.com/down/png/1211/blueberry/user_friend.png) no-repeat 0 center;}
    .text input{float:left;border:none;background:none;height:40px;line-height:30px;100%; text-indent:32px;}
     
    </style>
    </head>
     
    <body>
    <div class="text">
        <input type="text"/>
    </div>
    </body>
    </html>
  • 相关阅读:
    JavaScript深入学习(四)DOM
    Python学习(六)简单例子
    Python学习(五)常见函数及控制结构
    Python学习(四)运算符
    Python学习(三)格式化输出
    Spark学习(二)scala语法
    JavaScript学习(三)深入学习
    表的完整性约束
    创建表的完整语法和基本数据类型
    mysql基础
  • 原文地址:https://www.cnblogs.com/wanzhongjun/p/6813806.html
Copyright © 2011-2022 走看看