日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

css3骚操作记录

發布時間:2023/12/15 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 css3骚操作记录 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1.用CSS動畫實現省略號動畫

.loading:after {overflow: hidden;display: inline-block;vertical-align: bottom;animation: ellipsis 2s infinite;content: "\2026"; /* ascii code for the ellipsis character */}@keyframes ellipsis { from {width: 2px;}to {width: 15px;}} <p class="loading">正在加載中</p>

2.制造模糊文本

.blurry-text {color: transparent;text-shadow: 0 0 5px rgba(0,0,0,0.5); } `` ```html <p class="blurry-text">正在加載中</p>

3.背景漸變動畫
目前,你不能為漸變添加動畫,它通過改變背景位置,讓它看起來有動畫效果。

button {background-image: linear-gradient(#5187c4, #1c2f45);background-size: auto 200%;background-position: 0 100%;transition: background-position 0.5s; } button:hover {background-position: 0 0; } <button>ddd</button>

4.基于文件格式使用不同的樣式
為了更容易知道鏈接的目標,有時你想讓一些鏈接看起來和其它的不同。下面的片段在文本鏈接前添加一個圖標,對不同的資源使用不同的圖標或圖片:

a[href^="http://"]{padding-right: 20px;background: url(external.gif) no-repeat center right; } /* emails */ a[href^="mailto:"]{padding-right: 20px;background: url(email.png) no-repeat center right; }/* pdfs */ a[href$=".pdf"]{padding-right: 20px;background: url(pdf.png) no-repeat center right; }

5.個性圓角

#container {width: 50px;height: 50px;background-color: red;/* -webkit-border-radius: 4px 3px 6px 10px;-moz-border-radius: 4px 3px 6px 10px;-o-border-radius: 4px 3px 6px 10px; */border-radius: 4px 3px 6px 19px;}


6.自定義文本選擇

::selection { background: #e2eae2; } ::-moz-selection { background: #e2eae2; } ::-webkit-selection { background: #e2eae2; } <p>ddddddddd</p>

總結

以上是生活随笔為你收集整理的css3骚操作记录的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。