المشاريع
عرض على GitHub
ahume/selector-queries
حول
Adjust the layout of an HTML element based on its width
تطوير الويب والتطبيقاتالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلSelector queries and responsive containers
This script allows you to apply different class values to an HTML element based on its width. Use it as follows:
<div data-squery="min-width:400px=wide max-width:10em=small">
<p>Content here</p>
</div>
This will apply a class of wide when the element is wider than 400 pixels and a class of small when it is narrower than 10 ems. It works in all modern browsers back to and including IE6.
That's all.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…