- 博客(10)
- 收藏
- 关注
转载 css作用域的理解--从刷今日头条遇到的js题目说起
思考下面几个题目的输出结果:题目1:script>var a = 1;function fn1() {alert(a);var a = 2;}fn1();alert(a);/script>题目2:script>var a = 1;function fn1() {alert(a);
2017-05-29 13:25:33
903
转载 图片和多行文本水平垂直居中
1,多行文本水平垂直居中:html>html lang="en">head> meta charset="UTF-8"> title>多行文本水平居中title> style> .box{ width: 500px; height: 300px; line-height: 3
2017-05-07 01:20:23
535
转载 移动端多余文字显示为...适合webkit内核
/*多余的文字为...(需加 -webkit-line-clamp:1||2||3)*/.text_overflow { display: -webkit-box; text-overflow: ellipsis; overflow: hidden; -webkit-box-orient: vertical;}
2017-04-18 21:54:45
435
转载 input=file 上传图片
html>html lang="en">head> meta charset="UTF-8"> title>input上传图片并预览title>head>body>input type="file" id="photo"/>div id="click" style="width:200px;height:200px;border: 1px solid #cccccc">
2017-04-05 22:36:41
312
转载 js万年历
html>html lang="en">head> meta charset="UTF-8"> title>万年历title> style> * { list-style: none; margin: 0; padding: 0; } #box {
2017-03-19 21:59:19
582
转载 img标签图片自适应
img{ width: 100%; height: auto;max-width: 100%; display: block; }
2017-03-18 21:13:44
9489
转载 background-image详解 设置怀旧信封边框
http://www.360doc.com/content/14/1016/13/2792772_417403574.shtmlhttp://www.w3cplus.com/css3/css-secrets/continuous-image-borders.html
2017-03-18 16:06:19
1926
转载 从上班第二天了
到兴国上班第二天了,从第一天的胆战心惊到今天的渐渐适应,打退堂鼓的意愿也渐渐减少了,同事都是一群IT男,老大等人都很好,半问半写终于快要写完页面了。主要问题:采用float之后不会居中,例如:ul> li>a href="#nogo">首页a>li> li>a href="#nogo">关于a>li> li>a href="#nogo">产品a>li>
2017-02-13 22:31:36
276
原创 Fragment 限定符
《第一行代码》学到第四章,使用限定符,根据文章所说在res目录下新建layout_large文件夹的方式失败,不能显示。文章用的是eclipse可以新建,android studio不可以。查询发现以下方法可以解决右键layout文件夹——>new——>Layout resource file——>File name:layout_largeRoot element:L
2016-06-15 10:08:59
465
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人