CSS骚操作

获取当前HTML页面根元素的字体大小

getComputedStyle(document.getElementsByTagName("html")[0],undefined).fontSize

 

 

图片边缘的多边形型状

 

 

 

 

 
判断点击的是哪个radio button?

$("input").on("click",function(){

var a = $("input[name='sex']:checked").attr("id");
 
alert(a);

 

posted @ 2018-03-11 17:29  hh9515  阅读(281)  评论(0编辑  收藏  举报