您的位置:首页 > Web前端 > CSS

开发中遇到的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:
p {font-size: 4vw;}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: