摘要: 1.设置半透明:color:rgba(R,G,B,A),A为透明程度,在0-1之间 2.渐变色彩:线性渐变:background-image:linear-gradient(to left top,red,white,black); 阅读全文
posted @ 2017-05-28 21:32 YYNSunny 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1.圆角 border-radius是向元素添加圆角边框。 使用方法: border-radius:10px; /* 所有角都使用半径为10px的圆角 */ border-radius: 5px 4px 3px 2px; /* 四个半径值分别是左上角、右上角、右下角和左下角,顺时针 */ 实心圆: 阅读全文
posted @ 2017-05-25 21:38 YYNSunny 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: 一个炫酷标题效果: HTML: <!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Hello YYN</title><link href='http 阅读全文
posted @ 2017-05-25 20:38 YYNSunny 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1.<label hidden>看得见吗</label> //hidden为隐藏属性 2. <input tabindex="1" /> <textarea tabindex="2" spellcheck="true" cols="60" rows="5"></textarea> //spellch 阅读全文
posted @ 2017-05-21 16:04 YYNSunny 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1.<meta http-equiv="Pragma" content="no-cache"/> //禁止页面缓存 2.<script defer src="http://code.jquery.com/jquery-1.10.1.min.js" onload="alert('a')"></scri 阅读全文
posted @ 2017-05-21 14:47 YYNSunny 阅读(265) 评论(0) 推荐(0) 编辑
摘要: HTML5还是比较简单,本人也是新学,但是里面的一些东西挺好用的,比如说下面的details、datalist,如果用JS写的话代码挺烦的,5就能比较好的解决这个问题。以下是一些新增标签,也有图片样式,先总结在博客上,以后要用直接过来复制粘贴,很方便哦~ 1.新增标签 (1)进度条--Progras 阅读全文
posted @ 2017-05-20 22:08 YYNSunny 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 登陆Bootstrap官网:http://getbootstrap.com/ Bootstrap中的JS插件依赖于jQuery,因此jQuery要在Bootstrap之前引用 bootstrap框架初学,代码解释及理解 viewport:虚拟视口;width=device-width:让屏幕宽度等于 阅读全文
posted @ 2017-05-18 21:53 YYNSunny 阅读(171) 评论(0) 推荐(0) 编辑