随笔分类 - CSS
说明:主要针对html标签样式设定中用到的基础样式语法。
摘要:说明:抽离代码,仅供参考! <style> .span_y { width: 24px; height: 20px; position: absolute; margin-left: 13.8%; } .span_m { width: 24px; height: 20px; position: ab
阅读全文
摘要:鼠标指针悬停事件: $("#month_select").mouseenter(function(){ alert("go in!"); }); $("#month_select").mouseleave(function(){ alert("go out!"); }); $("#month_sel
阅读全文
摘要:<html> <body> <p>请把鼠标移动到单词上,可以看到鼠标指针发生变化:</p> <span style="cursor:auto">Auto</span><br /> <span style="cursor:crosshair">Crosshair</span><br /> <span
阅读全文
摘要:原因:display: list-item; 和 display: block;一样都是独占一行(可以设置宽高,不会换行!)。 解决办法:设置display: inline-block;
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Tan js倒计时</title> <style> *{ /** 外边距! */ margin: 0; /** 内边距! */ padding:0; } p {
阅读全文
摘要:获取手机、ipad等移动设备的实际屏幕分辨率:https://cn.screenresolution.org/
阅读全文

\
浙公网安备 33010602011771号