zoukankan      html  css  js  c++  java
  • jquery-mobile表单 表单媒体查询

    button提交的时候如果页面抖的话 就把高度写死

    把input默认的样式去掉 在input标签上添加 data-role="none"

    表单媒体查询

    .my-control,.my-label{
    display: inline-block !important;
    }

    .my-label{
    color:gray;
    }

    @media all and (min-768px ) {
    .my-label{
    25%;
    }
    .my-control{
    73%;
    }
    }
    @media all and (min-500px ) and (max-767px) {
    .my-label{
    36%;
    }
    .my-control{
    68%;
    }
    }
    @media all and (min-350px ) and (max-499px) {
    .my-label{
    27%;
    }
    .my-control {
    70%;
    }
    }
    @media all and (max-350px ) {
    .my-label{
    30%;
    }
    .my-control{
    63%;
    }
    }

      如需隐藏 label,请使用类 ui-hidden-accessible。这很常用,当您需要元素的 placeholder 属性充当 label 时:

  • 相关阅读:
    蛋糕多少钱?
    【FJOI2015】金币换位问题
    撞车
    【BZOJ 1097】旅游景点atr
    codeforces 434D
    codeforces 480D
    bzoj网络流
    bzoj2039
    bzoj1927
    bzoj1070
  • 原文地址:https://www.cnblogs.com/yaomengli/p/6738466.html
Copyright © 2011-2022 走看看