![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CSS
wangqiuchen_Study
这个作者很懒,什么都没留下…
展开
-
div居中
left:auto;top:10px;">原创 2014-05-09 14:52:19 · 512 阅读 · 0 评论 -
数字翻页
1. js 红字js已经上传到资源库中 jquery.dataStatistics.js" type="text/javascript"> $(document).ready(function(){ var moneyList = $("#moneyList").val(); moneyList = moneyList.replace(/[,]/g,"").repla原创 2018-01-24 15:22:08 · 616 阅读 · 0 评论 -
火狐浏览器hack
主要有以下几种: @-moz-document url-prefix() { .selector { property: value; } }上面是仅仅被Firefox浏览器识别的写法,具体如: @-moz-document url-prefix() { .demo { color:lime; } }支持Firefox的还有几种写法: /* 支持所有firefox版本 */ #s原创 2017-06-07 10:54:33 · 775 阅读 · 0 评论 -
移动端样式注意问题
文字大小: @media screen and (min-width: 300px) { html { font-size: 27.77783333333333px; } } @media screen and (min-width: 315px) { html { font-size: 29.166724999999996px; } }原创 2017-03-23 10:59:52 · 701 阅读 · 0 评论 -
修改select样式
//下拉列表 var sel = document.getElementsByTagName("select") ; for (i = 0, j = sel.length; i j; i++) { sel[i].addEventListener("change",function(){ this.previousSibling.textContent = $(thi原创 2016-03-29 11:40:56 · 393 阅读 · 0 评论 -
radio改版样式
.sex_male ,.sex_female{ opacity: 0; cursor: pointer; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0);}label{ display:-moz-inline-block; display:inline-原创 2016-03-29 09:54:22 · 423 阅读 · 0 评论 -
inline-block及解决空白间距
http://www.jb51.net/css/76707.html 原文章地址 去掉空白主要的思路就是在父节点加上font-size:0,在有文字的子节点上回复原来的字体大小。转载 2016-04-06 16:27:13 · 292 阅读 · 0 评论 -
解决火狐,谷歌,ie兼容性问题
.lc-bx1 { width: 112px!important; //火狐 width: 125px; //谷歌 width: 104px\9; //ie6以上 }原创 2016-03-07 15:45:30 · 853 阅读 · 0 评论 -
修改滚动条的样式
mydiv = document.getElementById("divQueryResult"); mydiv.style.marginTop = "5px"; mydiv.style.scrollbarFaceColor = "#999999"; mydiv.style.scrollbar3dLightColor = "#EEEEEE";原创 2014-06-16 13:54:01 · 582 阅读 · 0 评论 -
控制文本框自适应宽度
white-space: nowrap;原创 2014-06-26 09:50:00 · 719 阅读 · 0 评论 -
控制文本框只输入数字
<input id="txtJSYDZHDMJ_Edit" type="text" style="ime-mode: disabled;" onkeydown="OnlyDoubleByYang(this.value,2)" onpaste="return PasteDecimal(2)" runat="server" />原创 2014-06-26 09:48:43 · 399 阅读 · 0 评论 -
dropdownlist控件显示白边问题
设置原创 2014-05-20 10:07:07 · 728 阅读 · 0 评论 -
响应式font-size计算
7.5:设计稿尺寸处以100 css中的样式:(设计稿中的数值/100),单位:rem document.ready=function(){ var html = document.documentElement; var windowWidth = html.clientWidth; html.style.fontSize = windowWidth...原创 2019-01-15 17:28:00 · 653 阅读 · 0 评论