会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LTING
博客园
首页
新随笔
联系
订阅
管理
1
2
3
下一页
2017年4月26日
<span>包含<img>文字,使 span中img和文字保持同一水平线
摘要: 在一个span中有img并且有文字,结果不管怎么设置,Img总是高出来一截,特别的不协调。 代码如下: vertical-align:middle;垂直居中 <img id='close' style='vertical-align:middle;' src='/images/declear.gif
阅读全文
posted @ 2017-04-26 17:41 LTING
阅读(3373)
评论(1)
推荐(2)
2017年4月25日
css垂直居中:5种方法
摘要: <!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
阅读(2525)
评论(0)
推荐(0)
2017年4月24日
outline轮廓线在不同CSS样式下的表现
摘要: outline轮廓线在不同CSS样式下的表现 CSS 去除浏览器默认 轮廓外框 在默认情况下,点击 a 标签,input,或者添加click事件的时候,浏览器留下一个轮廓外框(chrome之下为蓝色)~ 然而这些默认的轮廓外框,有时候很影响美观,并不是我们想保留的。 我们应如何消除这些讨厌的 轮廓外
阅读全文
posted @ 2017-04-24 10:34 LTING
阅读(642)
评论(0)
推荐(0)
2017年4月17日
tr加不上边框
摘要: 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
阅读(727)
评论(0)
推荐(0)
2017年4月10日
HTML字符代码
摘要:
阅读全文
posted @ 2017-04-10 09:51 LTING
阅读(148)
评论(0)
推荐(0)
2017年4月7日
placeholder 用法
摘要: <input placeholder="--请输入-- " type="text"> 定义和用法 带有 placeholder 文本的搜索字段、 placeholder 属性提供可描述输入字段预期值的提示信息(hint)。 该提示会在输入字段为空时显示,并会在字段获得焦点时消失。 注释:placeh
阅读全文
posted @ 2017-04-07 15:04 LTING
阅读(817)
评论(0)
推荐(0)
2017年3月13日
<input/>文本输入框效果:
摘要: 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
阅读(1315)
评论(0)
推荐(0)
2017年2月8日
colspan="2"、列、rowspan="3"、行、用法!
摘要: <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
阅读(8537)
评论(0)
推荐(0)
2016年12月29日
CSS--实现小三角形
摘要: <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
阅读(1573)
评论(0)
推荐(0)
2016年12月27日
“div+css”下拉菜单
摘要: <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
阅读(209)
评论(0)
推荐(0)
1
2
3
下一页
公告