![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端练习
lhusailiu
这个作者很懒,什么都没留下…
展开
-
小三角符号制作原理
制作方法01 * { margin:0px; padding: 0px;} .box { width: 200px; height: 50px; background-color: skyblue; margin:100px;原创 2017-05-24 14:07:07 · 400 阅读 · 0 评论 -
移动web02
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> Title * { margin: 0; p原创 2017-07-06 21:53:04 · 157 阅读 · 0 评论 -
移动web01
设置移动web像素属性 <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">device-width :宽度为设备initial-scale :初始话缩放比例maximu原创 2017-07-05 20:59:31 · 153 阅读 · 0 评论 -
数组与字符串方法
Title //join 使用方法 var arr=["a","b","c","d"] var arr2=[]; console.log(arr.join(" ")); //用空格隔开 console.log(arr.join(",")); //用逗号隔开 console.log(arr.join("|")); console.log(arr);原创 2017-06-28 19:44:12 · 199 阅读 · 0 评论 -
常见函数封装工具(待补充)
Title //封装文本兼容(获取纯文本) function setInnerText (element,content) { if(typeof element.innerText==="string") { element.innerText=content } else{ e原创 2017-06-28 23:04:20 · 232 阅读 · 0 评论 -
属性 选择器 空格规范
Document 空格规范 属性 选择器 选择器与{需要包含空格 属性名与:之间不能有空格,:与属性值必须包含空格 选择器声明独自占有一行 建议选择器的嵌套层级应不大于 3 级,位置靠后的限定条件应尽可能精确 属性定义必须另起一行,如padding或者margin 属性定义后必须以分号结尾原创 2017-04-26 19:46:30 · 444 阅读 · 0 评论 -
类选择器(谷歌浏览器图标)
Document body{text-align:center;} /* 类属性选择器 */ span{ font:100px "微软雅黑"; } .g{ color:blue; } .oe{color:red; } .o{color:orange;} .oo{color:green;} G o o原创 2017-04-26 18:32:56 · 813 阅读 · 0 评论 -
html列表
武汉 江岸区 武昌区 江夏区 汉阳区 常用于底部网页内容编辑 去超市要买的东西 吃的 饼干 面包 巧克力 德福 费列罗 用的原创 2017-04-22 23:57:51 · 263 阅读 · 0 评论 -
多类选择器
Document .one{ font-size:20px; } .two{ color:red; } .three{ color:green; } .four{ font-size:30px; } #three{ color:#FF0000; } #four{ color:#FF0; font-s原创 2017-04-26 18:35:43 · 280 阅读 · 0 评论 -
设置字体样式
.purple{color:purple;}/* 设置有序列表4,13,14,15的颜色 */ .bule{color:#0007F9;} .red{color:#FF0406;} .font,b,.red{font-size:30px;} b{color:#FADD05;font-weight:normal;}/* 设置标签的颜色,不加粗 */ .green{fon原创 2017-04-26 16:21:39 · 623 阅读 · 0 评论 -
百度页面
百度 /* 设置主体的宽度,高度,文本居中,自定义对齐 */ body{width:1000px;height:1200px;text-align:center;margin:0px auto;} /* 设置ul的宽度,自定义对齐,点样式剔除 内边距为0*/ .ul1 ul{width:600px;height:50px;margin:0px auto;list-style:n原创 2017-04-26 16:41:07 · 463 阅读 · 0 评论 -
html表单
请您填写域名信息(请务必填写真实,有效和完整的域名注册信息) 登陆账号: 密码: 性别: <input type="radio" name="sex" id="" / checked=" checked">男原创 2017-04-22 23:42:13 · 148 阅读 · 0 评论 -
htm链接
/* 设置背景图片路径,不平铺;其images是图片的父级关系,cxqd1.html同级关系,故设置相对路径位置,与body标签缩进对齐 */ body{background:url("images/qiu.jpg") no-repeat;} 与a标签缩进对齐 <!-- 因cxqd1.html与其同级关系,故直接原创 2017-04-21 23:47:58 · 268 阅读 · 0 评论 -
html表格
今日小说排行榜 今日小说排行榜 --> 排名 关键词 趋势 今日搜索 最近七日 相关链接 1 鬼吹灯 65589 45 贴吧 图片 百科 2原创 2017-04-22 23:46:07 · 180 阅读 · 0 评论 -
js 构建函数对象
Title function Student (name,age,score) { this.name=name; this.age=age; this.score=score; this.sayHello=function () { console.log(("您好,我是"+t原创 2017-06-28 11:43:50 · 145 阅读 · 0 评论