vue項目css樣式文字溢出顯示省略號,鼠標移入滾動顯示


 1 .siderbarTitle{
 2         display: inline-block;
 3         width:100px;
 4         word-break: keep-all;
 5         overflow: hidden;
 6         text-overflow: ellipsis;
 7         &:hover{
 8             overflow: visible;
 9             animation: 3s siderbar linear infinite normal;
10             z-index: 0;
11         }
12         @keyframes siderbar {
13             0% {
14                 transform: translateX(0);
15                 -webkit-transform: translateX(0);
16             }
17             100% {
18                 transform: translateX(-45px);
19                 -webkit-transform: translateX(-45px);
20             }
21         }
22     }
<style lang="scss" scoped></style >
style中要加上lang="scss"


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM