zoukankan      html  css  js  c++  java
  • HTML常用属性

     

    blue:蓝色  red:红色  yellow:黄色  green:绿色  white:白色 gray:灰色

    /*去掉下划线*/        

    text-decoration: none;

    /*添加下划线*/

    text-decoration: underline;

    /*字斜体*/

    font-style:italic;

    /*字的大小*/

    font-size: 40px;

    /*背景颜色*/ 

    /*边境为10px的立体为绿色*/    

    border: 10px solid green

    /*通配符  调整浮动的*/

          *{

              margin: 0;

              padding: 0;

         }

    /*去掉字前面的点*/ (注意要写到li里面)

    list-style: none;

    /*字倾斜*/  

    font-style: oblique;

    /*居中*/    

    margin: 0 auto;

    /*是“内边距”的意思*/   

    Padding 

    /*清除浮动*/    

    clear:both(表示当前自己内部的元素不受其他盒子的影响)

    overflow:hidden(超出范围内就隐藏)

    /*首行空二个汉字的格*/    

    text-indent:2em;

    /**/  

    font-size(尺寸) 、 line-height(行高)、 font-family(字体)

    /*用户鼠标悬停的时候链接的样式。 是英语“悬停”的意思。*/   

    :hover

    /*表示的是谁压着谁,数值大的压着数值的小*/   

    z-index

    /*加外框*/    

    border: solid;

    /*信息列表*/  

     <select>

        <option>江西省</option>

        <option>河北省</option>

        </select>

    /*圆圈点*/    

    <ul type="circle">

    /*正方形点*/    

    <ul type="square">

    /*行高*/    

    line-height

    //复选框

    checkbox<input type=“checkbox”>

  • 相关阅读:
    WPF Image控件的Source属性是一个ImageSource对象
    wx:if 与hidden
    切换远程分支
    异步请求(简单一说)
    多维数组降维方法,简单一提
    3.25发版之最后的搜索框
    wepy-城市按字母排序
    new一个新对象。。。对象???
    参数函数是对象的理解
    群辉 MariaDB 10 远程连接
  • 原文地址:https://www.cnblogs.com/youjiajin/p/6007438.html
Copyright © 2011-2022 走看看