当前位置:首页 > 大学介绍 > 大学排名

院校排名css表单 css 里表单样式

今天天天高考网小编整理了院校排名css表单 css 里表单样式,希望在这方面能够更好的帮助到考生及家长。

院校排名css表单 css 里表单样式

css 里表单样式

1、按钮的margin-left:-10px;这样的负值。或者学度娘,取消input边框另作。

2、css里面font-size:16px;"Times New Roman",Georgia,Serif;这样。

3、可以设置input的type为image,然后加背景图片。

给出一个例子

<!DOCTYPE HTML>
<html lang="en">
<head>
    <meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" />
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>test</title>
    <link rel="stylesheet" href="css.css" type="text/css" media="screen">
    <script src="http://libs.baidu.com/jquery/1.7.0/jquery.min.js"></script>
</head>
<body>
    <div class="search">
        <input id="search" type="text" autofocus="autofocus" >
        <div class="submit">搜索</div>
    </div>
    <style type="text/css">
        .search{width:300px;overflow: hidden;border:1px solid #ddd;font-size:16px;height:2em;line-height: 2em;}
        .search:hover{border:1px solid #00af60;}
        .search input#search{padding-left: 10px;outline: none;width:230px;border:0;}
        .search .submit{cursor:pointer;float: right;padding:0 10px;color: #00af60;border-left: 1px solid #ddd;}
        .search:hover .submit{background: #00af60;color:#FFF;border:0;/*background:url(1.jpg)*/}
    </style>
    <script type="text/javascript">
        $(function(){
            $('.search').hover(function(){$('#search')[0].focus()});//
            $('.search .submit').click(function(){
                alert("在此检查然后js提交");
            })
        })
    </script>
</body>
</html>

以上,就是天天高考网小编给大家带来的院校排名css表单 css 里表单样式全部内容,希望对大家有所帮助!

如果你需要图片压缩,天天高考小编推荐个不错的在线图片压缩网站:https://www.yasuotu.com/

TAG:
本文标题:院校排名css表单 css 里表单样式
wap地址: https://m.ttjm.com/zixun/366490.html