摘要: 在一个span中有img并且有文字,结果不管怎么设置,Img总是高出来一截,特别的不协调。 代码如下: vertical-align:middle;垂直居中 <img id='close' style='vertical-align:middle;' src='/images/declear.gif 阅读全文
posted @ 2017-04-26 17:41 LTING 阅读(3333) 评论(1) 推荐(2) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <style> /*方法四*/ /* This parent can be any width and height */ .block { 阅读全文
posted @ 2017-04-25 15:21 LTING 阅读(2493) 评论(0) 推荐(0) 编辑
摘要: outline轮廓线在不同CSS样式下的表现 CSS 去除浏览器默认 轮廓外框 在默认情况下,点击 a 标签,input,或者添加click事件的时候,浏览器留下一个轮廓外框(chrome之下为蓝色)~ 然而这些默认的轮廓外框,有时候很影响美观,并不是我们想保留的。 我们应如何消除这些讨厌的 轮廓外 阅读全文
posted @ 2017-04-24 10:34 LTING 阅读(621) 评论(0) 推荐(0) 编辑
摘要: table{ border-collapse: collapse; }可以解决tr添加边框的问题! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm 阅读全文
posted @ 2017-04-17 19:28 LTING 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-04-10 09:51 LTING 阅读(142) 评论(0) 推荐(0) 编辑
摘要: <input placeholder="--请输入-- " type="text"> 定义和用法 带有 placeholder 文本的搜索字段、 placeholder 属性提供可描述输入字段预期值的提示信息(hint)。 该提示会在输入字段为空时显示,并会在字段获得焦点时消失。 注释:placeh 阅读全文
posted @ 2017-04-07 15:04 LTING 阅读(745) 评论(0) 推荐(0) 编辑
摘要: 1、选中去除文本框文字,离开后显示原有文字: <input name="key" type="text" id="key" value="关键词" size="30" onmouseover=this.focus();this.select(); onclick="if(value==default 阅读全文
posted @ 2017-03-13 11:19 LTING 阅读(1298) 评论(0) 推荐(0) 编辑
摘要: <style> .tab{ width: 100%; text-align: center; border: 1px solid #ccc; } .tab td{ border-top: 1px solid #ccc; border-right: 1px solid #ccc ; } </style 阅读全文
posted @ 2017-02-08 10:00 LTING 阅读(8460) 评论(0) 推荐(0) 编辑
摘要: <style> html, body { margin: 0; padding: 0; } /*下面用CSS3分别实现向上、下、左、右的三角形*/ .btn-color{ color: #622CB9; } /*箭头向上*/ .arrow-up { width:0; height:0; border 阅读全文
posted @ 2016-12-29 10:30 LTING 阅读(1555) 评论(0) 推荐(0) 编辑
摘要: <style> html, body { margin: 0; padding: 0; } .btn-group{ font-size: 14px; position: relative; } .open>.dropdown-menu{ display: block; } .btn{ padding 阅读全文
posted @ 2016-12-27 16:31 LTING 阅读(203) 评论(0) 推荐(0) 编辑