摘要: 让竖条没有:<bodystyle=`overflow:-Scroll;overflow-y:hidden`></body>让横条没有:<bodystyle=`overflow:-Scroll;overflow-x:hidden`></body>2个都去掉<bodyscroll="no"></body> 阅读全文
posted @ 2013-05-27 20:11 萌小孩 阅读(133) 评论(0) 推荐(0) 编辑
摘要: ie6如需要定义一个元素的100%高度,必须先指定其父元素一个具体的高度,而如果父元素直接就是body的话,还必须指定html的高度为100%/*普通元素*/#parent {height:500px;}#child {height:100%;}/*父级元素为body元素*/html{height:100%;}body{min-height:100%;height:auto !important;height:100%;}#fullLength {height:100%;} 阅读全文
posted @ 2013-05-27 19:46 萌小孩 阅读(151) 评论(0) 推荐(0) 编辑
摘要: <html><head><metahttp-equiv="Content-Type"content="text/html; charset=utf-8"/><title>CSS TAB</title><styletype="text/css">/*重置body, a, ul样式*/body{margin:0;background:#fff;}a{text-decoration:none;font-size:13px;color:#000;}ul{margin:0; 阅读全文
posted @ 2013-05-27 19:45 萌小孩 阅读(188) 评论(0) 推荐(0) 编辑
摘要: <IFRAMEID="iFrame1"SRC="iframe.htm"allowTransparency="true"style="background-color: green"></IFRAME> 阅读全文
posted @ 2013-05-27 19:44 萌小孩 阅读(159) 评论(0) 推荐(0) 编辑
摘要: oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键<tableborderoncontextmenu=return(false)><td>no</table> 可用于Table<bodyonselectstart="return false"> 取消选取、防止复制onpaste="return false" 不准粘贴oncopy="return false;" oncut="return fals 阅读全文
posted @ 2013-05-27 19:42 萌小孩 阅读(484) 评论(0) 推荐(1) 编辑
摘要: body {font-family:微软雅黑;padding:0;margin:0;font-size:12px;}#wrap {margin-left:auto;margin-right:auto;width:940px;} 阅读全文
posted @ 2013-05-27 19:41 萌小孩 阅读(94) 评论(0) 推荐(0) 编辑
摘要: textarea{overflow:auto;} 阅读全文
posted @ 2013-05-27 19:41 萌小孩 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 网站包括asp php jsp asp.net1.asp最快入门的脚本 安全性太差2.php运行效率最高 最大优势是省钱 从操作系统还是数据库还是脚本 都是免费 唯一的麻烦是 代码不是很好理解 还有很多正则表达式3.asp.net可以vb也可用c#语言 开发平台强大网页设计工具1.dreamweaverCS5 网页编辑器2.flash CS5 网络传输的流媒体动画软件3.firework CS5 网络图片处理软件4.photoshop CS5 阅读全文
posted @ 2013-05-27 19:41 萌小孩 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 拖动网页时保持背景不动的CSS样式代码<style> body{background-image:url(logo.gif); background-repeat:no-repeat;background-position:center} </style> 阅读全文
posted @ 2013-05-27 19:40 萌小孩 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Css中实现两个DIV左右并排摆放,且自动按比例伸缩#Div0{float:left;background-color:Blue;width:100%;height:180px;}#Div1{float:left;background-color:Blue;width:70%;height:180px;}#Div2{background-color: Green;width:30%;height:180px;float:right;} 阅读全文
posted @ 2013-05-27 19:39 萌小孩 阅读(2546) 评论(0) 推荐(0) 编辑
摘要: li {display: inline-block;line-height:0;}label {display: inline-block;line-height:1.5em;vertical-align:middle;}input {display: inline-block;vertical-align:middle;} 阅读全文
posted @ 2013-05-27 19:27 萌小孩 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 我们知道,如果要一个区块水平居中,最好的办法是设置其width,然后使用margin左右为auto,但是对于一个不确定宽度的区块,我们也想要水平居中该怎么办,其实可以设置其display为table,然后设置左右的margin为auto,不过ie6,7不支持display: table;除此之外我们还可以用css3的box-align和box-pack来实现,当然那更不兼容了CSS:.element{display: table;margin:0auto;}因为不兼容,我们得想一个兼容的办法啊,那就是直接用table来构造喽<table class="centered-bloc 阅读全文
posted @ 2013-05-27 19:26 萌小孩 阅读(248) 评论(0) 推荐(0) 编辑
摘要: width:200px;/*设置宽度*/white-space:nowrap;/*设置不折行*/text-overflow:ellipsis;/*这就是省略号喽*/-o-text-overflow:ellipsis;/*兼容opera*/overflow:hidden;/*设置超过的隐藏*/ 阅读全文
posted @ 2013-05-27 19:23 萌小孩 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 表格线常见问题:1.表格边框与的重叠。[采用border-collapse:collapse解决]2.嵌套表格与被嵌套表格边线重叠问题。[采用border-top|left|right|bottom解决]3.嵌套表格与被嵌套表格对不齐的问题。[采用table-layout: fixed;解决] 阅读全文
posted @ 2013-05-27 19:08 萌小孩 阅读(670) 评论(0) 推荐(0) 编辑