前端问题和解决方法
来源:互联网 发布:名字抽奖软件 编辑:程序博客网 时间:2024/05/22 09:46
Centering text in column
th.dt-center, td.dt-center { text-align: center; }
Change table header color using bootstrap
thead th {
background-color: #006DCC;
color: white;
}
tbody td {
background-color: #EEEEEE;
}
change select default color
::selection {
background: #ffb7b7; /* WebKit/Blink Browsers */
}
::-moz-selection {
background: #ffb7b7; /* Gecko Browsers */
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
background-color: red; /*you color here*/
background-image: none;
}
获取当前时间和日期:
var currentdate = new Date();
var datetime = "Last Sync: " + currentdate.getDate() + "/"
+ (currentdate.getMonth()+1) + "/"
+ currentdate.getFullYear() + " @ "
+ currentdate.getHours() + ":"
+ currentdate.getMinutes() + ":"
+ currentdate.getSeconds();
function getDateTime() {
var now = new Date();
var year = now.getFullYear();
var month = now.getMonth()+1;
var day = now.getDate();
var hour = now.getHours();
var minute = now.getMinutes();
var second = now.getSeconds();
if(month.toString().length == 1) {
var month = '0'+month;
}
if(day.toString().length == 1) {
var day = '0'+day;
}
if(hour.toString().length == 1) {
var hour = '0'+hour;
}
if(minute.toString().length == 1) {
var minute = '0'+minute;
}
if(second.toString().length == 1) {
var second = '0'+second;
}
var dateTime = year+'/'+month+'/'+day+' '+hour+':'+minute+':'+second;
return dateTime;
}
JQuery的live()方法已经被废除,使用on(event, handler())方法替换
$("#curPage").live('change',function(){ });
解决第一个option的change事件无法触发的问题
给设置一个option,然后给该option设置成默认选择selected,然后把它隐藏,具体如下:
<option style="display:none" selected>默认选择</option>
阅读全文
0 0
- 前端问题和解决方法
- Genymotion问题和解决方法
- 移动前端常见JS与CSS问题及解决方法
- 关于前端开发的跨域问题以及解决方法jsonp
- 移动前端的一些坑和解决方法(外观表现)
- 移动前端的一些坑和解决方法(外观表现)
- 前端页面布局常见的兼容性问题和解决方法
- 遇到的问题和解决方法
- android编程问题和解决方法
- Robot Framwork问题和解决方法
- 前端跨域解决方法
- 前端问题
- 前端问题
- 前端问题
- 前端问题
- 前端问题
- 复赠 :控制台相关问题和解决方法
- qt3和qt4并存问题的解决方法
- 欢迎使用CSDN-markdown编辑器
- 软件测试员----面试,你准备好了么?
- 阿拉伯数字转换成罗马数字
- CSS id与class
- 用oracle的rollup函数进行合计操作
- 前端问题和解决方法
- MAC --消息认证码
- 获取当月天数的方法
- wex5组件--messageDialog
- SDUT-1162 C语言实验——保留字母
- 使用oradebug ipc来检查cluster interconnect
- LSTM(一)
- 并发容器之ConcurrentHashMap源码解析
- SDUT-1171 C语言实验——保留整数