小羊也疯狂 2017-03-14 08:28 采纳率: 100%
浏览 2425
已采纳

button 是inline-block. 为什么我只能改变它的宽度不能改变它的高度

图片说明

 <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>task2-4</title>
    <style type="text/css" >
        form{
            width: 400px;
            margin-left: auto;
            margin-right: auto;
            margin-top: 20px;
        }
        #rightIn{
            height: 150px;
        }
    </style>
</head>
<body>
<form >
    <input  type="text" value="请输入整数">
    <input  id="rightIn"  type="button" value="左侧入">
    <input  id="leftIn" type="button"  value="右侧入">
    <input  id="leftOut" type="button" value="左侧出">
    <input  id="rightOut" type="button" value="右侧出">
</form>

</body>
</html>

我想让按钮里面的字和按钮一起放大 有没有什么好办法

  • 写回答

7条回答 默认 最新

  • Go 旅城通票 2017-03-14 10:18
    关注

    http://stackoverflow.com/questions/12450776/html-input-button-css-height-not-working-on-safari-and-chrome

    
    
    
    
    
    Change it from <input> to <button> and add -webkit-appearance: none; to the start of your CSS, eg:
    
    .submitbtn {
        -webkit-appearance: none;
        height: 50px;
        background-color:#FFF;
        color:#666;
        font-weight:bold;
        border: solid #666 1px;
        font-size: 14px;
    }
    
    
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(6条)

报告相同问题?

悬赏问题

  • ¥50 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?