pt:物理像素(电容屏上像素块个数) px:逻辑像素、设备独立像素 高清屏:1px = 4pt 普通屏:1px = 1pt dpr:设备像素比:(某一方向上)物理像素/逻辑像素 通常设置1rem=屏幕宽度*dpr/10;设置缩放,使1px与1pt相等。 例如:1rem 为 320*2/10=64px Read More
posted @ 2016-04-05 15:43
animagi
Views(948)
Comments(0)
Diggs(0)
map,area标签 a、shape 属性: (建议使用缩写,最后写default) b、coords 属性: 圆形:shape="circle",coords="x,y,z" 这里的 x 和 y 定义了圆心的位置("0,0" 是图像左上角的坐标),r 是以像素为单位的圆形半径。 多边形:shape Read More
posted @ 2016-04-05 11:40
animagi
Views(302)
Comments(0)
Diggs(0)
浏览器结果显示如下: 半径35px,div高度35px;直径小于div高度时,直径按照div高度计算 Read More
posted @ 2016-04-05 11:27
animagi
Views(354)
Comments(0)
Diggs(0)