![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html
L时光
这个作者很懒,什么都没留下…
展开
-
button 刷新问题
刚开始的时候我的代码是这样的 <button>一个按钮</button>button 在第一次点击的时候, 会 刷新页面? 百度了一下 需要在button 里加一个 type="button"<button type="button"></button>ok,这样就不会刷新了, 记录一下 ...原创 2018-07-19 10:40:58 · 678 阅读 · 0 评论 -
css切割clip-path简单教程
clip-path:polygon(50% 0, 100% 50%,50%,100%,0,50%); 这是一个菱形 这四个参数分别为上右下左 它的意思是第一个参数(上)x(水平线)轴为50%的位置,Y(垂直线)轴为0 也就是顶部尖角那个位置,第二参数(右)x(水平线)轴为100%的位置,Y(垂直线)轴为50% 也就是右边尖角那个位置,第三个参数(下)x(水平线)轴为50...原创 2018-08-10 19:20:17 · 1985 阅读 · 0 评论 -
使用jquery编写插件
;function($){ $.fn.extend({ //$.fn是jqury的原型对象, extend是jquery用来扩展属性和方法 "color":function(value){ return this.css("color",value); } })}$("div").color("red"); //这样...原创 2018-11-21 11:49:16 · 162 阅读 · 0 评论