项目
在 GitHub 查看
ahume/selector-queries
关于
Adjust the layout of an HTML element based on its width
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
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.
探索相关项目
加载中…