2016年9月21日

css:去掉手机浏览器上点击时的边框和阴影

摘要: outline:none;(去掉蓝框) -webkit-tap-highlight-color:rgba(0,0,0,0) ;(去掉阴影)适用于ios,Android 阅读全文

posted @ 2016-09-21 17:26 ruoyuting 阅读(704) 评论(0) 推荐(0) 编辑

2016年9月14日

用css伪类制作三角形的三种方法

摘要: 在手机上写三角形的时候,我一般都用伪类,刚开始的时候用的图片,但是在现在的手机高清屏幕上,图片容易失真,还是用伪类吧! .next的position都要是relation 第一种:一个90度的“ > ”, 只有线条。(可以做下拉框的箭头之类的) 例如: .next:after{ content: " 阅读全文

posted @ 2016-09-14 10:48 ruoyuting 阅读(3039) 评论(0) 推荐(0) 编辑

2016年9月12日

html之如何让文字两端对齐

摘要: text-align: justify;/*英文*/ text-align-last: justify;/*中英文*/ text-align-last: justify;亲测有效(chrome) 阅读全文

posted @ 2016-09-12 09:47 ruoyuting 阅读(739) 评论(0) 推荐(1) 编辑

2016年7月20日

position与z-index的关系

摘要: .simulationgame .gameranking .rankinginfo{ width:140px; margin:0 auto; font-family:Arial, Microsoft YaHei; font-size:14px; color:#8c8b8b; text-align:c 阅读全文

posted @ 2016-07-20 17:45 ruoyuting 阅读(200) 评论(0) 推荐(0) 编辑

2016年7月18日

table边框单线的实现方法

摘要: 1、实现方法一: <table border="0" cellspacing="1" style=" 实现原理:利用table的单元格之间的间距(cellspacing)和table的背景色来实现 2、实现方法二: <table border="1" bordercolor="#a0c6e5" st 阅读全文

posted @ 2016-07-18 17:08 ruoyuting 阅读(237) 评论(0) 推荐(0) 编辑

2016年7月13日

放假回来啦!!小技能:一个div不给width,怎么让它居中捏?`(*∩_∩*)′

摘要: 答案是:这个div没有浮动的话,就用text-align: center; 有的话。。。我也不知道了 阅读全文

posted @ 2016-07-13 16:26 ruoyuting 阅读(133) 评论(0) 推荐(0) 编辑

2016年6月29日

div里面的id与for

摘要: <input class="select" type="checkbox" value="1" id="checkboxjcf" name="" /> <label for="checkboxjcf">jc</label> 阅读全文

posted @ 2016-06-29 15:59 ruoyuting 阅读(252) 评论(0) 推荐(0) 编辑

2016年6月27日

用CSS3在手机上写弹出框,遮盖层

摘要: html: 在页面头部要写 <title>网上预约</title> <link href="../App_Themes/default/css/header.css" rel="stylesheet" type="text/css" /> <link href="../App_Themes/defa 阅读全文

posted @ 2016-06-27 11:53 ruoyuting 阅读(593) 评论(0) 推荐(1) 编辑

textarea之placeholder

摘要: placeholder 属性适用于以下的 <input> 类型:text, search, url, telephone, email 以及 password。这个属性是html5才有的新属性,原来的HTML 4.01 与 HTML 5 之间有差异。 但是textarea的placeholder 为 阅读全文

posted @ 2016-06-27 10:38 ruoyuting 阅读(628) 评论(0) 推荐(0) 编辑

2016年6月21日

对div作用域的理解

摘要: 若想要div的height起作用,则要保证它上面的层的height也是有用的,如上图 阅读全文

posted @ 2016-06-21 11:53 ruoyuting 阅读(323) 评论(0) 推荐(0) 编辑

导航