qq_38969881 2019-07-20 11:57 采纳率: 0%
浏览 398

css能帮我看一下这个input输入框为什么不能设置高度吗?

刚学习css不久,做练习题,这里不知道为什么,设置高度为35px,一直不生效

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title></title>
        <style type="text/css">
            *{
                margin: 0;
                padding: 0;
            }
            .header{
                width: 960px;
                height: 81px;
                /* background: red; */
                margin: 0 auto;
                position: relative;
            }
            .header-left{
                background-image: url(img/glb_v2.png);
                background-position: 15px 30px;
                width: 700px;
                height: 81px;
                float: left;
            }
            .header-right{
                width: 100px;
                height: 30px;
                line-height: 20px;
                font-size: 10px;
                /* background: black; */
                text-align: right;
                float: left;
                position: absolute;
                right: 0px;
                top: 33px;
            }
            .center{
                width: 960px;
                height: 620px;
                margin: 0 auto;
                /* background: black; */
                position: relative;
                clear: both;
            }
            .center-top{
                width: 960px;
                height: 36px;
                background-image: url(img/bgx.png);
                background-repeat: repeat-x;
            }
            .center-top-h1{
                font-size: 14px;
                font-weight: normal;
                color: white;
                text-indent: 25px;
                padding-top: 8px;
            }
            .center-bg{
                width: 960px;
                height: 620px;
                background-image: url(img/bgy.png);
                background-repeat: repeat-y;
                margin: 0;
            }
            .center-bg-left{
                width: 642px;
                height: 620px;
                float: left;
                position: relative;
            }
            .center-bg-right{
                width: 318px;
                height: 620px;
                float: left;
                position: relative;
            }
            .center-bg-left-top{
                width: 464px;
                height: 58px;
                padding-left: 118px;
                position: absolute;
                right: 0;
                top: 50px;
            }
            .center-bg-left-top-input{
                font-size: 16px;
                font-weight: bold;
                width: 166px;
                height: 35px;
            }
        </style>
    </head>
    <body>
        <div class="header">
            <div class="header-left"></div>
            <div class="header-right"> <a href="#">反馈意见</a> </div>
        </div>
        <div class="center">
            <div class="center-top">
                <h1 class="center-top-h1">欢迎注册网易邮箱!邮件地址可以登录使用其他网易旗下产品。</h1>
            </div>
            <div class="center-bg">
                <div class="center-bg-left">
                    <div class="center-bg-left-top">
                        <input type="button" value="注册免费邮箱"  class="center-bg-left-top-input"/>
                        <input type="button" value="注册免费邮箱"  class="center-bg-left-top-input"/>
                    </div>
                </div>
                <div class="center-bg-right"></div>
            </div>
        </div>
    </body>
</html>

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 R语言Rstudio突然无法启动
    • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
    • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
    • ¥15 用windows做服务的同志有吗
    • ¥60 求一个简单的网页(标签-安全|关键词-上传)
    • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
    • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
    • ¥100 为什么这个恒流源电路不能恒流?
    • ¥15 有偿求跨组件数据流路径图
    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值