如何在Materialise CSS上正确调整元素大小

时间:2017-12-28 01:32:31

标签: css responsive-design materialize

我正在开发一个应用程序,我正在使用Materialise CSS。我很习惯Bootstrap,我遇到了很多困难,其中一个就是调整网格元素的大小。使用Bootstrap时,网格元素会自行对齐,但是使用Materialize这些元素在这里相互叠加,我对此感到非常沮丧。这四个按钮在较小的屏幕上相互重叠,当文本较大时,按钮标签文本也会开箱即用。难道我做错了什么?我该怎么做才能防止元素重叠?感谢任何帮助。 Obs:集成的Snippet会出现错误,但在此链接中它可以正常工作:https://jsfiddle.net/5bq5gpdh/4/



select * from address where se10 in (44444444) and ctry_nm in ("USA");

$(document).ready(function () {
        //$('.tap-target').tapTarget('open');

        let valorAposta = $('#valorAposta').val();
        $('#valorPremio').val(valorAposta);
        appendPartidas();
        //$('.collapsible').collapsible();
    });

* {
    font-family: 'Roboto';
    color: #7C7C7D;
    font-size: 18px;
}

body {
    background-image: url(../img/background.png);
}

/* fallback */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialicons/v31/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format('woff2');
}
  
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.waves-effect.waves-primary .waves-ripple {
    background-color: #007bff !important;
}

.collapsible-header {
    padding: 0 32px !important;
}

.scm-primary {
    background-color: #007bff !important;
}

.scm-secondary {
    background-color: #7C7C7D !important;
}

.scm-dropdown-bg {
    background-color: #ddd !important;
}

.white-text {
    color: white !important;
}

.scm-parent-width {
    position: absolute;
    width: 100%;
    left: 0%;
    margin-bottom: 30px;
}

.scm-content-padding {
    padding-top: 40px !important;
}

/*=================HOME=================*/
.card .small-card {
    padding: 8px;
    padding-bottom: 0px;
}

.big-text {
    font-size: 1.3rem !important;
}

.small-text {
    font-size: 1.1rem !important;
}

.painel-aposta {
    width: 100%;    
    margin-top: 55px; 
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 2;
}


.row.remove-after-row::after, .row.remove-after-row {
    content: none !important;
}

.match-panel-padding {
    padding: 2px !important;
}

.parent-width {
    width: 100% !important;
}

.no-padding {
    padding: 0;
    margin: 0 !important;
}

.no-bottom-margin {
    margin-bottom: 0px !important;
}

.scm-card-content {
    padding: 5px !important;
    background-color: #F4F4F4;
    box-shadow: none !important;
}

.scm-match-card {
    border: 1px solid #007bff;
}

.scm-primary-text {
    color: #007bff !important;
}

.scm-league-action {
    padding: 0px 0px !important;
}

.scm-odd-button {
    border: 1px solid #D6D6D6;
    color: #666;
    float: left;
    height: 60px;
    line-height: 30px;
    margin: 10px 0 0 10px;
    text-align: center;
    width: 100px;
}




1 个答案:

答案 0 :(得分:1)

在每张卡片(或主卡片内的任何其他组件)上使用此课程:byte[] aux = decipher(registry.getServerPrivateKey(), "RSA/ECB/PKCS5Padding", data.get("key").toString().replace("\"", "")) .getBytes("UTF-8"); System.out.println(aux.length) //length = 24 bytes registry.addSession(..., new SecretKeySpec(aux, 0, aux.length, "AES"));

小型设备上的全部(12列),中型设备上的一半(6列)和大型设备上的2列。

示例:https://codepen.io/sistematico/pen/dJvgVd

更多信息:http://materializecss.com/grid.html