首頁  >  文章  >  web前端  >  html5標籤css3的常用樣式

html5標籤css3的常用樣式

高洛峰
高洛峰原創
2016-10-20 13:23:551640瀏覽

name:有如下6個值:
application-name:文檔名稱或應用名,整個文檔只能包含一個值。
author:文檔作者
description:文檔描述
generator:產生文檔的程式。
keywords:網頁關鍵字,以英文逗號分隔。

 

百度一下

href:路徑html5標籤css3的常用樣式
src:圖片路徑

頁標籤的屬性位置
Bgcolor:背景色
Background:背景圖片
Bordercolor:邊框顏色

table中

 colspan 跨2列

     

password 密碼

radio 單選

checkbox 多選

reset 重設

file 檔案上傳

submit 提交表單

image 圖形提交

button 普通按鈕

下拉🠎

煙台

       

青島

       

威海

   


字體、字號:字號為正常字號:縮寫) ) 斜體(italic)font-size(大小) 
font-family(字體系列)

字體顏色:opacity (
字體顏色:
coloropacity (

字體顏色:color
。 、對齊等:line-height (行高) 
text-align (對齊) 
letter-spacing (字元間距)
text-decoration (文字修飾)

overflow  超出的部分隱藏

text-overflow
文字裁切 clip裁切文字時不加入...  ellipsis 裁切時加上...  注意:不換行和over-flow控制

text-shadow 陰影
text-indent

背景屬性:

background (縮寫形式)
) -color(背景色)

background-image(背景圖)

background-repeat(背景圖重複方式)
background-position(位置座標、偏移量)


列表常用

list-style: none無無擦風格disc實心圓circle空心圓square 實心正方形decimal 數字

 

盒子屬性:
margin(外邊距/邊界)    以上方為主可寫1、2、4個值
border(邊框)pad 距/填充)

後可加-top 等方向

border-radius 邊框圓角

box-shadow  陰影


 

變形效果:transg
translate(長度值或百分比) translateX translateY 在水平方向、垂直方向或兩個方向上縮放

rotate(角度)旋轉元素

sk(角度) skewX skewY  在水平方向、垂直方向或兩個方向上使元素傾斜一定的角度

matrix 自訂

 

過渡效果:transition


transition-property 指定過渡的css屬性預設值完成過渡的時間

transition-timing-function 指定過渡函數 緩動效果預設值ease 等同於(0.25, 0.1, 0.25, 1.0) 

transition-delay 指定過渡開始出現的延遲時間🎓定義一個動畫

animation

<style>          
  .t5{
            transition: 5s ease-out all;   /*过渡   ease    in 加速   out减速*/
        }/*transition-delay延迟*/
        .t5:hover{

            transform: skew(45deg,45deg)
        }
        @keyframes key {
            0%{
                background-color: red;width: 200px;height: 200px;
            }
            25%{
                background-color: orange;width: 100px;height: 100px;transform: rotate(-90deg);
            }
            50%{
                background-color: yellow;width: 60px;height: 60px;transform: none;
            }
            75%{
                background-color: green;width: 120px;height: 120px;transform: none;
            }
            100%{
                background-color: blue;width: 200px;height: 200px;transform: rotate(360deg);
            }
        }
        .kt{
            animation:key 1s;
           /* animation-iteration-count: infinite;*//*无限循环*/
            background-color: yellow;
            width: 200px;height: 200px;

        }

 </style>

<div class="kt t5"></div>

text  文字
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
上一篇:字母間距下一篇:字母間距