一、左侧定宽,右侧自适应 1. 使用float和margin实现 html css 效果图 2. 使用float+margin(fix)实现 html css 3. 使用float+overflow实现 html css 效果图 如何实现两侧等高? html css 效果图 parent设置over Read More
posted @ 2017-11-06 18:07 孟丽媛 Views(346) Comments(0) Diggs(0)
1. 使用text-align 和 vertical-align 和 inline-block实现水平垂直居中 html css 2. 使用positon实现水平垂直居中 html css 3. 使用flex实现水平垂直居中 html css Read More
posted @ 2017-11-06 16:33 孟丽媛 Views(339) Comments(0) Diggs(0)
1. 使用table-cell和vertical-align实现垂直居中 html css 效果 2. 使用line-height和vertical-align实现垂直居中 html css 效果图 3. 使用position实现垂直居中 html css 4. 使用flex实现垂直居中 html Read More
posted @ 2017-11-06 16:14 孟丽媛 Views(152) Comments(0) Diggs(0)
一、水平居中 1. 使用text-align和display:inline-block实现水平居中 html css 2. 使用margin:0 auto并设置宽度实现水平居中 html css 3. 使用margin:0 auto和display:table实现水平居中 html css 4. 使 Read More
posted @ 2017-11-06 15:53 孟丽媛 Views(140) Comments(0) Diggs(0)
1. none:隐藏对象。与visibility属性的hidden值不同,其不为被隐藏的对象保留其物理空间 2. inline:指定对象为内联元素。 3. block:指定对象为块元素。 4. inline-block:指定对象为内联块元素。(CSS2) inline、block、inline-bl Read More
posted @ 2017-11-06 13:00 孟丽媛 Views(230) Comments(0) Diggs(0)
1. none:隐藏对象。与visibility属性的hidden值不同,其不为被隐藏的对象保留其物理空间 2. inline:指定对象为内联元素。 3. block:指定对象为块元素。 4. inline-block:指定对象为内联块元素。 inline、block、inline-block的区别 Read More
posted @ 2017-11-06 12:30 孟丽媛 Views(762) Comments(0) Diggs(0)