عنوان:

‫خاصیت background-clip و نحوه استفاده از آن


نویسنده: کمال ح
تاریخ: ۱۳۹۴/۱۱/۱۷ ۱۰:۹
آدرس: www.dntips.ir

background-clip is one of those properties I've known about for years, but rarely used. Maybe just a couple of times as part of a solution to a Stack Overflow question. Until last year, when I started creating my huge collection of sliders. Some of the designs I chose to reproduce were a bit more complex and I only had one element available per slider, which happened to be an input element, meaning that I couldn't even use pseudo-elements on it. Even though that does work in certain browsers, the fact that it works is actually a bug and I didn't want to rely on that. All this meant I ended up using backgrounds, borders, and shadows a lot. I also learned a lot from doing that and this article shares some of those lessons.  



مشاهده مطلب اصلی