码迷,mamicode.com
首页 >  
搜索关键字:div    ( 119410个结果
例子:选项卡效果
<div style="width:700px; height:500px; margin-top:30px"> <div id="menu"> <div class="list" style="娱乐</div> <div class="list" style="社会</div> <div clas ...
分类:其他好文   时间:2016-09-26 16:13:47    阅读次数:107
例子:图片轮播
<div style="width:1000px; height:250px; margin-top:30px"> <img src="img/11.jpg" width="1000" height="250" /> <img src="img/22.png" width="1000" height ...
分类:其他好文   时间:2016-09-26 16:11:31    阅读次数:112
例子:两个列表之间移动数据
<div style="width:600px; height:500px; margin-top:20px"> <div style="width:200px; height:300px; float:left"> <select id="list1" size="10" style="width ...
分类:移动开发   时间:2016-09-26 15:59:17    阅读次数:152
例子:倒计时按钮可用
<div style="width:500px; height:500px; margin:100px 0px 0px 100px"> <input id="btn" type="submit" value="确定" style="width:100px; height:35px" disabled ...
分类:其他好文   时间:2016-09-26 14:46:19    阅读次数:120
例子:单选按钮确定提交是否可用
<div style="width:500px; height:500px;"> <div style="margin-top:20px;"> <input type="radio" name="sure" id="s1" onclick="KeYong()" />同意 <input type="r ...
分类:其他好文   时间:2016-09-26 14:34:37    阅读次数:132
html给div加超链接的方法
1.通过window.open函数 <div onclick="window.open('www.baidu.com')">在新窗口跳转至百度</div> <div onclick="window.open('www.baidu.com','_self')">在当前窗口跳转至百度</div> 2.通 ...
分类:Web程序   时间:2016-09-26 14:30:39    阅读次数:916
td里的内容宽度自适应 及 鼠标放上显示标题div title
td里的内容自适应宽度, 用 width:100%控制 div title是显示标题内容, 鼠标滑过显示 ...
分类:其他好文   时间:2016-09-26 12:45:31    阅读次数:104
div固定宽度,内容过长出省略号。
<div align='left' style='white-space: nowrap; overflow: hidden; text-overflow: ellipsis;width: 800px;'> </div> ...
分类:其他好文   时间:2016-09-26 12:44:45    阅读次数:119
css实现左边div自适应宽度,右边宽度适应左边
利用bfc:右边盒子触发bfc,使其不与浮动盒子区域重叠,因此会重新计算宽度。 效果如图 补充一下: BFC翻译过来是块级格式化上下文,和haslayout比较相似,但haslayout是旧版本IE下的一个专有属性,表示元素自己对自身的内容进行组织和计算。BFC相当于一个独立的渲染单元,内外元素不会 ...
分类:Web程序   时间:2016-09-26 11:03:08    阅读次数:258
打印-print.js
//打印开始// strPrintName 打印任务名// printDatagrid 要打印的datagridfunction CreateFormPage(ctx,strPrintName, printDatagrid) { var tableString = '<div align="cent ...
分类:Web程序   时间:2016-09-26 10:44:34    阅读次数:149
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!