- 博客(14)
- 收藏
- 关注
原创 CSS垂直水平居中多种方案实现
方案一缺点:嵌套层级深 将父级元素设置为display:table; 内层元素设置为display:table-cell; Document *{ box-sizing: border-box; } html,body{ margin:0; paddi
2018-01-31 18:46:17
287
原创 实现手机号344格式输入:000 0000 0000
Document body { position: absolute; left: 0; right: 0; width: 100%; height: 100%; margin: 0; padding: 0
2017-12-12 21:10:28
2105
原创 CSS隐藏滚动栏
Document .outer-container{ position: relative; overflow: hidden; width:100%; height:50px; } .inner-container {
2017-11-20 16:50:12
352
原创 css3动画实现loading
html Document css.loading { width: 50px; height: 15px; position: fixed; left: 50%; top: 50%; opacity: 0; transform: transla
2017-11-19 21:21:23
569
原创 jQuery实现轮播广告
轮播广告 #slider { width: 568px; height: 320px; background: #ddd; position: absolute; left: 0; top: 0; righ
2017-11-17 00:59:11
1332
原创 js控制img自适应父元素
function autoImg(img_select, img_url) { //img元素 var img_element = $(img_select); //img路径 var img_url = img_url; //img父级元
2017-11-16 13:49:12
2272
原创 CSS引入外部字体文件
引入:@font-face { font-family: RTWSYueRoudGoDemo-Regular; /*这里是说明调用来的字体名字*/ src: url("../fonts/RTWSYueRoudGoDemo-Regular.otf"); /*这里是字体文件路径*/ } 调用:div{ font-family:"RTWSYueRoudGoDemo-
2017-10-25 17:27:45
1265
转载 js 判断iPhone|iPad|iPod|iOS|Android客户端
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { //alert(navigator.userAgent); window.location.href ="iPhone.html";} else if (/(Android)/i.test(navigator.userAgent)) { //al...
2017-10-18 15:55:08
4076
原创 CSS Resets
/*========== RESETS ==========*/ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, in...
2017-10-18 15:39:11
372
转载 JS常用正则表达式
转载自:https://funteas.com/topic/592f828e572bfb9c4d965ab01 用户名正则//用户名正则,4到16位(字母,数字,下划线,减号)var uPattern = /^[a-zA-Z0-9_-]{4,16}$/;//输出 trueconsole.log(uPattern.test("iFat3"));2 密码强度正则//密码强度正则,最少6位,包括至少1个...
2017-10-17 17:59:55
449
原创 div边框css动画
效果:css:.wrap{ width:840px; margin:50px auto; height:300px; } .wrap a{ float:left; width:180px; height:180px
2017-10-17 17:31:33
1088
原创 配置xmpp
第一步:修改hosts文件:打开 C:\Windows\System32\drivers\etc\hosts ,在最后面添加 127.0.0.1 www.index.loc第二步: 修改 httpd-vhosts.conf 文件:打开C:\xampp\apache\conf\extra\httpd-vhosts.conf 在后面加入以下代码: #ServerA
2017-10-17 15:05:16
511
原创 meta标签总结
meta标签属性:可选:http-equiv // 把content属性关联到HTTP头部name// 把content属性关联到一个名称scheme// 定义用于翻译content属性值的格式必选:content(定义 http-equiv 或 name 属性相关的元信息)
2017-10-16 23:24:02
311
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人