zoukankan      html  css  js  c++  java
  • css的背景和字体

    首先是背景的引入、尺寸大小、是否平铺、位置的相关设置

    #back_div{
                    height: 300px;
                    width: 300px;
                    border: 1px solid red;
                    /*背景*/
                    /*background-color: blue;*/
                    /*背景的引入*/
                    background-image: url(wyw.jpg);
                    /*背景的尺寸*/
                    background-size:30% 50%;
                    /*背景的平铺*/
                    background-repeat: no-repeat;
                    /*背景的位置*/
                    /*background-position:bottom ;*/
                    background-position:10px 30px  /*左 上*/    
                }

    对其进行相关操作后,得到的效果如下

    字体的相关设置,包括字体、大小、样式、是否加粗、下划线、颜色、水平居中以及垂直居中。

    #font_div{
                    width: 300px;
                    height: 200px;
                    border: 1px solid green;
                    font-size: 10px;
                    font-style: italic;
                    font-weight: bolder;
            text-decoration: overline;/*text-line-through: underline;*/
                    color: orange;
                    text-align: center;
                    line-height: 200px;
                }
    a{
                    text-decoration: none;
                }
         <a href="">跳转</a>
            <div id="font_div">
            一切都是真是情况,但求各位伸出一点援助之手。
            </div>

    对文字进行相关操作后,得到相应的效果。

  • 相关阅读:
    Pandas | 21 日期功能
    Pandas | 20 级联
    Pandas | 19 合并/连接
    Pandas | GroupBy 分组
    Pandas | 缺失数据处理
    Pandas | 16 聚合
    Pandas | 15 窗口函数
    Pandas | 14 统计函数
    Pandas | 13 索引和选择数据
    Pandas | 12 选项和自定义
  • 原文地址:https://www.cnblogs.com/scw123/p/9459888.html
Copyright © 2011-2022 走看看