摘要: CSS Document腾讯QQ官网 样式初始化body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend,input,textarea,select{margin:0;padding:0}body{font:12px"宋体","A... 阅读全文
posted @ 2016-01-15 18:08 Dull_ly 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1.父级加上浮动;2.给父级加display:inline-block;3.在浮动元素下加 .clear{ height:0;font-size:0 //清除IE6最小高度为19px,但是font-size最小为2Px,效果不佳; clear:both; }4.在浮动元素下加5.c... 阅读全文
posted @ 2016-01-15 18:07 Dull_ly 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1. Div居中问题 div设置 margin-left, margin-right 为 auto 时已经居中,IE 不行,IE需要设定body居中,首先在父级元素定义text-algin: center;这个的意思就是在父级元素内的内容居中。 2.链接(a标签)的边框与背景 a 链接加边框和背景色... 阅读全文
posted @ 2016-01-15 18:06 Dull_ly 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1.float的div闭合;清除浮动;自适应高度; ① 例如:这里的NOTfloatC并不希望继续平移,而是希望往下排。(其中floatA、floatB的属性已经设置为 float:left;) 这段代码在IE中毫无问题,问题出在FF。原因是NOTfloatC并非float标签,必须将float标签... 阅读全文
posted @ 2016-01-15 18:03 Dull_ly 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1.IE6下,快元素有浮动,和横向的margin,横向的margin值会被放大成两倍 解决:将快元素display设置为 inline;2.IE6,7下几px的间隙问题 在IE6,7下li本身没有浮动,但内容浮动就会多出几px间隙 解决:(1)li加上浮动 (2)给li加vertical-alig... 阅读全文
posted @ 2016-01-15 18:00 Dull_ly 阅读(136) 评论(0) 推荐(0) 编辑
摘要: /** * Created by PhpStorm. * User: yuyud * Date: 2016/1/11 0011 * Time: 16:43 *//** * 数据库连接 * Class Mysql */class Mysql{ private $mysql_server_name... 阅读全文
posted @ 2016-01-15 17:55 Dull_ly 阅读(198) 评论(0) 推荐(0) 编辑