摘要:
设置min-width,当小于某个宽度时出现滚动条, overflow-y: auto;height:100px;当高度小于100时,出现滚动条 设置滚动条的样式 /* 设置滚动条的样式 */::-webkit-scrollbar { width: 12px;}/* 滚动槽 */::-webkit- 阅读全文
2017年6月26日
摘要:
首先,我们需要知道的是:我们可以对表格table设置margin,而不能设置padding;对单元格td设置padding,而不能设置margin。所以说,我们不能对单元格td设置margin属性来调整单元格与单元格之间的距离,但是我们可以使用一下方法来达到同样的效果。1) 设置padding就像刚 阅读全文
2017年6月20日
摘要:
对input添加margin-bottom:2px 阅读全文
2017年6月19日
摘要:
<div class="choose_btn"> <input type="radio" name="choose_raido" id="radio1"/><label for="radio1" class="radio">扫码领取</label> <input type="radio" name= 阅读全文
2017年6月15日
摘要:
http://www.cnblogs.com/xiaohuochai/p/5347930.html transiton: 过渡属性 过渡所需要时间 过渡动画函数 过渡延迟时间; 触发过渡 单纯的代码不会触发任何过渡操作,需要通过用户的行为(如点击,悬浮等)触发,可触发的方式有: :hoever :f 阅读全文
2017年6月13日
摘要:
$(".content_left").click(function() { // var asq=$(this).index() var i= $(".content_left").index($(this)); console.log($(".content_left:eq("+i+")")) / 阅读全文
2017年6月12日
摘要:
1,首先引用hammer在html中 <script src="js/jquery.hammer.js"></script> 2.在js中创建一个新的实例 ,并在要点击的界面加上id为gamePage的ID名 var gamePage = document.getElementById('gameP 阅读全文
摘要:
.page3_ship{ background:url(../image/boat_02.png) 0 center no-repeat; background-size: 486px 385px; position:absolute;bottom:0;left:50%;margin-left:-1 阅读全文
摘要:
$("#id").html() 获取内容 $("#id").html(xiugai) 修改内容 阅读全文
摘要:
//背景图移动,营造船在前进的视觉效果 背景设置repeat-y; .page3_bg{ position:relative;width:100%;height:100%; background:url(../image/page3_bg.png) repeat-y; background-size 阅读全文