zoukankan      html  css  js  c++  java
  • html IMG 标签水平居中 ,和图片过大 溢出处理

    max- 100%;//父元素的宽度
    display: block;
    margin: 0 auto;
        display: table-cell; 垂直居中
        vertical-align: middle;
    style="max- 100%;max-height: 100%; display:inline-block;"  //水平居中
      text-indent:50px; 段落首行缩进50个像素
        <style>
            ::-webkit-scrollbar { //隐藏滚动条
                display: none;
            }
        </style>

    转载 https://segmentfault.com/a/1190000018279674

    https://div.io/topic/1396

       <div style=" 30%;display: inline-block;" class="code">
                                <div class="code-img" style="height: 34px;text-align: center;">
                                    <img style=" display: inline-block;max- 100%;max-height: 100%;vertical-align: middle;"
                                        src="1.jpg" alt="" id="captchaImg">
                                </div>
                            </div>
  • 相关阅读:
    border-color
    animation
    servlet injection analysis
    事务隔离级别
    write RE validation
    Filter
    Annotation
    Injector
    gradle的安装
    Build tool
  • 原文地址:https://www.cnblogs.com/enych/p/9276544.html
Copyright © 2011-2022 走看看