參考你的方法,我想用css做會更友好。
![]() |
原來是這樣,理解了。不過我有更好的方法。 圖片加載起來比較慢,并且你這也不是一套。 div#medal_33 { content: '極品'; background: linear-gradient(to right, #ecffdd, #e0fee2, #d1faea, #b8eaeb, #bbeffa, #b9e7f7, #bddcf9, #c6d2fc, #dec2ff, #e8befd, #f4bdf7, #f7bee9); margin-left: -1px;控制左右位置 transform: translateY(-20px);控制上下位置 } 當(dāng)然還可以添加一些圓角 角標(biāo)的來美化。因為我就打算這樣干。 |
收藏了,不錯。 |
頂一波 |
這個好。 |
感謝樓主的無私分享 |
手機(jī)版|小黑屋|Discuz! 官方交流社區(qū)
( 皖I(lǐng)CP備16010102號 |皖公網(wǎng)安備34010302002376號 )|網(wǎng)站地圖|
GMT+8, 2025-9-19 13:31 , Processed in 0.085093 second(s), 32 queries .
Powered by Discuz! W1.0 Licensed
Copyright © 2001-2025 Discuz! Team.