随笔分类 - HTML
摘要:{foreach}循环也有自身属性的变量,可以通过{$smarty.foreach.name.property}访问,其中"name"是name属性。 例 <{foreach $items as $r name=row_name }> .index包含当前数组索引,从零开始,每次循环增长1 <{if
阅读全文
摘要:效果图 html <tr> <td><label for="" class="control-label">支持协议:</label></td> <td><input type="text" class='my_input' name="agreement" id="agreement" /> </
阅读全文
摘要:在使用 bootstrap框架中 发现 html按钮每次点击时都会出现一个黑色的边框,不是很美观。 在 bootstrap.min.css 中有下面这段代码影响: .btn.active.focus, .btn.active:focus,.btn.focus, .btn:active.focus,.
阅读全文
摘要:<input type="text" id="vip_number" name="vip_number" value="" autocapitalize="on" ></input> 如果弹出数字键盘且只有输入数字 <input type="number" id="vip_number" name=
阅读全文
摘要:效果图 在Html Table 表格中 画斜线 分 文字和斜线 两部分实现 文字部分 <th class="row-0" style="width:150px;height:50px;" > <div class="biaotou"> <div class="biaotoutxt1">转单办事处</
阅读全文
摘要:" onkeyup="if(isNaN(value)){execCommand('undo');alert('只能输入数字 !');}" onafterpaste="if(isNaN(value))execCommand('undo')" >
阅读全文
摘要:document.getElementById("by_stages_number").style.display="block";//可见 document.getElementById("by_stages_number").style.display="none";//不可见 document.getElementById("by_stages_number").innerT...
阅读全文
摘要:1、<span id="span_id">span的文本</span>的取值。 js取<span>的值并不是用document.getElementById('span_noticesg').value,而是document.getElementById('span_id').innerText。j
阅读全文
摘要:(1)用expression 鼠标滑过变色: 第1行第1列 第2行第2列 第3行第3列 第4行第4列 第5行第5列 ---------------------------- 简单的隔行变色: 第1行第1列 第2行第2列 第3行第3列 第4行第4列 第5行第5列 ------------------------------- 每个单元格变色: 第1行第1列 第...
阅读全文
摘要:chrome表单自动填充后,input文本框的背景会变成偏黄色的,想必大家都会碰到这种情况吧, 这是由于chrome会默认给自动填充的input表单加上input:-webkit-autofill私有属性造成的, 解决方法如下: input文本框是纯色背景的 可以对input:-webkit-aut
阅读全文
摘要:aa
阅读全文
摘要:background-size这个属性是css3,新增的属性,现在很多浏览器已经支持了,但是IE系列的浏览器却没有支持,比如IE8,下面介绍下如何解决这个问题 在IE浏览器中,可以通过滤镜filter来实现。 background-image: url('test.jpg'); background
阅读全文
摘要:<table background="login/image/jiaozhouwan.jpg" style="background-size: 100% 100%;">
阅读全文
摘要:jquery操作select(增加,删除,清空) jQuery获取Select选择的Text和Value: 比如<select class="selector"></select> 1、设置value为pxx的项选中 2、设置text为pxx的项选中 这里有一个中括号的用法,中括号里的等号的前面是属
阅读全文
摘要:vertical-align:middle;
阅读全文
摘要:TR标签的隐藏与显示:block(显示)和none(隐藏) <tr style="display:none">
阅读全文
摘要:字幕标记<marquee>流动字幕标记的格式为:<marquee direction="left|right|up|down" behavior="scroll|alternate" loop="i|-1|infinite" hspace="m" vspace="n" scrollamount="i" scrolldelay="j" align="top|middle|bottom" bgcolor="颜色&
阅读全文
摘要:<html><DIV style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid; SCROLLBAR-SHADOW-COLOR: #3d5054; SCROLLBAR-3DLIGHT-COLOR: #3d5054; SCROLLBAR-ARROW-COLOR: #ffd6da;SCROLLBAR-DARKSHADOW-COLOR: #85989c; SCROLLBAR-F
阅读全文
摘要:在页面中含有frameset方式布局时,如果各个frame之间要相互访问的话:var getLeftFrameValue=parent.frames["leftFrame"].document.getElementById("txtleft").value; 在页面中含有iframe方式布局时,此时访问iframe中元素时:vargetLeftFrameValue=document.getElementById("leftiframe").contentWindow.document.getElementById("txtl
阅读全文
摘要:在做table背景图时,发现总无法顶到网页头部。烦闷了很久,终于在网上找到了解决方法,写下来大家分享。<style type="text/css">.bg { BACKGROUND-POSITION: center top; BACKGROUND-IMAGE: url(login3/images/bg.JPG); BACKGROUND-REPEAT: repeat-x; BACKGROUND-COLOR: #1a4975 ;margin:2;}</style><body class="bg"><TABLE cel
阅读全文