开发中遇到的CSS相关问题及解决
2015-08-20 13:40
726 查看
1、禁用一个链接(a标签):
.not-active {
pointer-events: none;
cursor: default;
}
2、Font
scaling based on width of container(字体随容器宽度或高度缩放)
相关链接:http://stackoverflow.com/questions/16056591/font-scaling-based-on-width-of-container
The values are: ‘vw’ (viewport width), ‘vh’ (viewport height), ‘vmin’ (the smaller of vw or vh), ‘vmax’ (the larger or vw or vh).
1 v == 1% of the initial containing block
using it looks like this:
.not-active {
pointer-events: none;
cursor: default;
}
2、Font
scaling based on width of container(字体随容器宽度或高度缩放)
相关链接:http://stackoverflow.com/questions/16056591/font-scaling-based-on-width-of-container
The values are: ‘vw’ (viewport width), ‘vh’ (viewport height), ‘vmin’ (the smaller of vw or vh), ‘vmax’ (the larger or vw or vh).
1 v == 1% of the initial containing block
using it looks like this:
p {font-size: 4vw;}
相关文章推荐
- CSS样式优先级机制
- 常用的css hack
- 浏览器css解析的两种模式
- css3鼠标经过图片放大
- CSS透明度设置
- css3易混淆属性详解
- css3 div垂直居中
- CSS3:2D转换方法
- css 背景色渐变
- !important css样式
- CSS3属性box-shadow使用教程,css3box-shadow
- HTML CSS属性overflow、white-space、text-overflow
- 基于CSS+dIV的网页层,点击后隐藏或显示
- 原创:CSS3技术-雪碧图自适应缩放与精灵动画方案
- css学习笔记
- css 多栏自适应布局
- CSS3实现几个常用的网页小效果
- 转------详解CSS选择器、优先级与匹配原理
- 日常CSS遇到问题(1)
- 借助CSS理解相对路径