1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /*統計區塊噗寶1*/ #dash-stats:before { /*這裡勿動*/ position: absolute; /*圖片*/ content: url(https://imgur.com/Q16Mr2k.png); /*左右位置*/ left: 0px; /*left可改right*/ /*上下位置*/ bottom: 0px; /*bottom可改top*/ } /*統計區塊噗寶2*/ #dash-stats:after { /*這裡勿動*/ position: absolute; /*圖片*/ content: url(https://imgur.com/Q16Mr2k.png); /*左右位置*/ right: 0px; /*right可改left*/ /*上下位置*/ bottom: 0px; /*bottom可改top*/ } /*推薦使用額外語法:統計區塊左右留空間*/ #dash-stats { /*留空1*/ padding-left: 48px; /*left可改top、bottom、right*/ /*留空2*/ padding-right: 48px; /*right可改top、bottom、left*/ } |
Direct link: https://paste.plurk.com/show/taQWZGRKn9FAH2jf5bo0