開發中遇到的CSS相關問題及解決

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;}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章