亚洲最大看欧美片,亚洲图揄拍自拍另类图片,欧美精品v国产精品v呦,日本在线精品视频免费

  • 站長資訊網(wǎng)
    最全最豐富的資訊網(wǎng)站

    css3中什么樣式都可以過渡嗎

    css3中不是什么樣式都可以過渡的,只有具有中間值的屬性樣式可以進(jìn)行過渡設(shè)置;過渡是元素從一種樣式逐漸改變?yōu)榱硪环N的效果,必須要指定添加效果的CSS屬性和指定效果的持續(xù)時(shí)間。

    css3中什么樣式都可以過渡嗎

    本教程操作環(huán)境:windows10系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。

    css3中什么樣式都可以過渡嗎

    css3中不是什么樣式都可以過渡的。

    只有具有中間值的屬性樣式可以進(jìn)行過渡設(shè)置。

    CSS3 過渡是元素從一種樣式逐漸改變?yōu)榱硪环N的效果。

    要實(shí)現(xiàn)這一點(diǎn),必須規(guī)定兩項(xiàng)內(nèi)容:

    指定要添加效果的CSS屬性

    指定效果的持續(xù)時(shí)間。

    距離可進(jìn)行過渡效果的屬性:

    顏色: color background-color border-color outline-color 位置: backround-position left right top bottom 長度:     [1]max-height min-height max-width min-width height width     [2]border-width margin padding outline-width outline-offset     [3]font-size line-height text-indent vertical-align      [4]border-spacing letter-spacing word-spacing 數(shù)字: opacity visibility z-index font-weight zoom 組合: text-shadow transform box-shadow clip 其他: gradient

    示例如下:

    .test {     border: 1px solid red;     width: 100px;     height: 50px;     background-color: lightblue;     transition: width 2s, background-color 2s ease 0.5s;     /*代表width持續(xù)時(shí)間為2s,延遲時(shí)間為默認(rèn)值0;       background-color持續(xù)時(shí)間2s 延遲0.5s */ }   .test:hover {     width: 300px;     background-color: indianred; }

    輸出結(jié)果:

    css3中什么樣式都可以過渡嗎

    (學(xué)習(xí)視頻分享:css視頻教程)

    贊(0)
    分享到: 更多 (0)
    網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)