• CSS标签属性


      text-indexnt:30px;  文本首行缩进

     text-align:center   文本居中

    text-decoration:line-thrugh  删除线

    text-shadow: 1px 1px 1px red  文字阴影

    ---------------------------

      文字控制    font     要  按照顺序写     如 font:italic  bold  20px/30px '黑体';

     font-style:italic 倾斜        font-weight:bold 加粗   font-size:20px 字体的大小      font-family:'黑体' ,'微软雅黑'(安全字体),sans-serif  设置字体   line-height:20px  行高

    -----------------------------------

    bakground-image:url(./tu.png)      background-repeat:no-repeat 不重复

    body{ background-attachment:fixed (图片定位到窗口 窗体固定 )      background-position:reight top(绝对定位)}

    ---可以一下写完 简写   bacground:gray url(./tu.png) no-repeat fixed right top;

    ---------------------------------------------

    设置 大图片背景 

      先引入图片

       background:url(./bg.png)  -164px  -450px;    把一个图片的图标引入到页面

    -------------------------------------

        选择器 {属性:属性值;}

        标签选择器   ID选择器  类选择器    

      优先级     层级选择器 div #id   》id>类》标签

    --------------------------------

      引入方式   4 重种

       内联   嵌套  外部《link  rel="stylesheet"  href="01.css" 》  导入   @import url(./1.css) (导入的CSS必须放在第一行)

    ---------------------------------

     CSS代码初始化:  浏览器兼容

      blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,legend,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0}body,button,input,select,textarea{font:12px/1.5 tahoma,arial,'Hiragino Sans GB',5b8b4f53,sans-serif}h1,h2,h3,h4,h5,h6{font-size:100%}address,cite,dfn,em,var{font-style:normal}code,kbd,pre,samp{font-family:courier new,courier,monospace}small{font-size:12px}ol,ul{list-style:none}a{text-decoration:none}a:hover{text-decoration:underline}sup{vertical-align:text-top}sub{vertical-align:text-bottom}legend{color:#000}fieldset,img{border:0}button,input,select,textarea{font-size:100%}table{border-collapse:collapse;border-spacing:0}

    ---------------------------------

      

      

    世上无难事,只怕有心人......
  • 相关阅读:
    前端 二
    web 作业 01
    前端 一
    mysql 了解性知识
    数据查询优化之mysql索引
    yml格式或者叫做YAML格式数据学习
    执行sql报错:Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
    大型网站架构之分布式消息队列(转)
    intellj利用 maven自动生成dto,mapper文件
    对memcached使用的总结和使用场景(转)
  • 原文地址:https://www.cnblogs.com/gooderic/p/5838127.html
Copyright © 2020-2023  润新知