随笔分类 -  web前端

jQuery中this与$(this)的区别
摘要:pppppppppppp 这里的this其实是一个Html 元素(textbox),textbox有title属性,所以这样写是完全没... 阅读全文

posted @ 2015-08-30 07:55 防空洞123 阅读(236) 评论(0) 推荐(0)

非常好用的css代码格式化工具
摘要:http://tool.lanrentuku.com/cssformat/可以横向排列和竖向排列,感谢互联网,让我找到你了。 阅读全文

posted @ 2015-08-28 15:40 防空洞123 阅读(191) 评论(0) 推荐(0)

滚动条样式
摘要:::-webkit-scrollbar-thumb{background-color:#fcf6e0;height:50px;outline-offset:-2px;outline:2px solid #d3c38e;}::-webkit-scrollbar-thumb:hover{backgrou... 阅读全文

posted @ 2015-08-26 15:55 防空洞123 阅读(213) 评论(0) 推荐(0)

sublime相关
摘要:按<英文标记会出现提示符。有个simple html5可以快速创建html文档。Emmet:HTML/CSS代码快速编写神器http://www.iteye.com/news/27580打造自己的前端利器sublimetext3http://www.douban.com/note/276794943... 阅读全文

posted @ 2015-08-24 15:48 防空洞123 阅读(134) 评论(0) 推荐(0)

移动web开发
摘要:Viewport的理解http://www.cnblogs.com/2050/p/3877280.htmlhttp://www.cnblogs.com/koukouyifan/p/4066567.html缩放比例和DPIhttp://www.qianduan.net/mobile-webapp-de... 阅读全文

posted @ 2015-08-11 11:11 防空洞123 阅读(166) 评论(0) 推荐(0)

jquery选择器 之 获取父级元素,子元素,同级元素
摘要:href_fir href_sec href_thr ... 阅读全文

posted @ 2015-08-08 08:59 防空洞123 阅读(288) 评论(0) 推荐(0)

css关系选择符
摘要:testcss3 border-radius 属性允许您向元素添加圆角 This is a heading. This is paragraph. This is paragraph. This is paragraph. This is paragraph. This is par... 阅读全文

posted @ 2015-07-22 18:02 防空洞123 阅读(399) 评论(0) 推荐(0)

Javascript笔记
摘要:http://www.cnblogs.com/dodohua/archive/2010/10/12/1849173.htmlhttp://www.nowamagic.net/librarys/veda/detail/1579js原型链解释http://www.nowamagic.net/librar... 阅读全文

posted @ 2015-07-20 10:58 防空洞123 阅读(151) 评论(0) 推荐(0)

css处理最后一个li
摘要:.relatebar li{width:98px;height:146px;padding:5px;float:left;border-left:1px solid #ccc;}.relatebar li:first-child{border-left:0px solid #ccc;}.lanmu3... 阅读全文

posted @ 2015-07-14 16:03 防空洞123 阅读(1574) 评论(0) 推荐(0)

在DIV里面让图片居中
摘要:.content.itemDiv{ display: table-cell;width: 171px;height: 133px;text-align: center; vertical-align: middle; background:url(../images/itembg2.png) no-... 阅读全文

posted @ 2015-06-30 13:47 防空洞123 阅读(196) 评论(0) 推荐(0)

如何用PS软件取得色块的颜色值?
摘要:如何用PS软件取得色块的颜色值? 阅读全文

posted @ 2015-06-05 11:08 防空洞123 阅读(261) 评论(0) 推荐(0)

div,css常用技术
摘要:1,一张图作为背景的用法:必须指定width,height,background属性.smallCircle{ margin-top: 25px; margin-left: 40%; width: 10px;height: 10px; background:url(../images/smallCi... 阅读全文

posted @ 2015-05-18 13:08 防空洞123 阅读(286) 评论(0) 推荐(0)

css选择器笔记
摘要:p.important {color:red;} 选择器现在会匹配 class 属性包含 important 的所有 p 元素我们假设 class 为 important 的所有元素都是粗体,而 class 为 warning 的所有元素为斜体,class 中同时包含 important 和 wa... 阅读全文

posted @ 2015-05-18 13:03 防空洞123 阅读(143) 评论(0) 推荐(0)

Sublime Text 3 常用插件以及安装方法
摘要:http://www.cnsecer.com/460.htmlZen Coding: 一种快速编写HTML/CSS代码的方法http://www.qianduan.net/zen-coding-a-new-way-to-write-html-code/前端开发另一专业IDE:Brackets实时预览... 阅读全文

posted @ 2015-05-12 14:54 防空洞123 阅读(154) 评论(0) 推荐(0)

简单的水平菜单
摘要:无标题文档 Alternative Country Jazz Rock Alternative Country Jazz Rock 阅读全文

posted @ 2015-05-08 12:01 防空洞123 阅读(172) 评论(0) 推荐(0)

HTML 按钮换肤
摘要:.button2{ background-image: url(images/input-bg.jpg); width: 83px; height: 31px; border: none 0px; font-size: 14px; cursor: hand;}这是... 阅读全文

posted @ 2015-05-06 11:22 防空洞123 阅读(192) 评论(0) 推荐(0)

css 盒子模型
摘要: 阅读全文

posted @ 2015-05-05 14:40 防空洞123 阅读(145) 评论(0) 推荐(0)

visibility:hidden和display:none的区别
摘要:大家知道,如果想让某一段代码在前台不显示,最简单的方法是用css的display:none即可,这样下边的内容就自动上移或右侧的左移来填补这个空隙。但特殊情况下我们只需要隐藏这个元素,但它的位置不能被占了,那该怎么实现呢。突然发现css还有一个visibility属性,用 visibility:hi... 阅读全文

posted @ 2015-05-04 13:44 防空洞123 阅读(178) 评论(0) 推荐(0)

CSS定位
摘要:CSS position 属性通过使用position 属性,我们可以选择 4 种不同类型的定位,这会影响元素框生成的方式。position 属性值的含义:static元素框正常生成。块级元素生成一个矩形框,作为文档流的一部分,行内元素则会创建一个或多个行框,置于其父元素中。relative元素框偏... 阅读全文

posted @ 2015-04-30 15:54 防空洞123 阅读(264) 评论(0) 推荐(0)

display属性
摘要:DIV+CSS中让布局居中_背景图片居中_文字内容居中它可以让行内显示为块的元素,变为行内显示,例如 DIV1 DIV2 这里DIV1和DIV2分别占一行,但是你给他们加上属性后变了 DIV1 DIV2 DIV1和DIV2这时候显示在同一行了,试试看吧。和 display:inline 对应的是... 阅读全文

posted @ 2015-04-29 16:12 防空洞123 阅读(232) 评论(0) 推荐(0)

导航