• 字体和图片基本设置


    500px;
                    height: 500px;
                    border: 1px solid red;
                    border-top: 1px solid black;
                    border-bottom: 1px solid cyan;
                    border-left: 1px solid brown;
                    background-image: url(../img/1.jpg);
                    background-repeat: no-repeat;(不平铺)
                    background-size: 100% 100%;(照片适合尺寸)
                    background-position: bottom;(照片对齐方式)
                    font-size: 24px;(字体大小)
                    font-style: italic;(字体倾斜)
                    font-weight: bolder;(字体加粗)
                    text-decoration: underline;(字体下划线)
                    /*水平居中*/
                    text-align: center;(左右字体居中)
                    /*垂直居中*/
                    /*line-height:500px;*/
                    display: table-cell;(垂直对齐方式)
                    vertical-align: middle;(垂直对齐方式)

  • 相关阅读:
    比赛排名机制
    Python 异常(Exception)
    Python 异常(Exception)
    Sobel算子及C++实现
    一题多解(一) —— list(Python)判空(以及 is 与 == 的区别)
    常用软件的常用快捷键
    常用软件的常用快捷键
    从队列、二叉树到优先队列
    Jenkins(二)
    AssertValid函数学习
  • 原文地址:https://www.cnblogs.com/hankai2735/p/8693061.html
Copyright © 2020-2023  润新知