
css
lzr_must
全是优点,什么都会,就是吹牛的毛病改不掉~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
css垂直水平居中
自身相对父元素:偏移50% - width/2 //width为定值 position: relative; top: 50%; /*偏移*/ margin:auto;//水平居中 margin-top: -150px; //假设width=300px//如果width不确定 position: relative; margin:auto;//水平居中 top: 50%; /*偏移*/ tran原创 2017-05-18 15:48:25 · 273 阅读 · 0 评论 -
页面布局(圣杯,双飞翼)
常见布局:grid,flex,绝对定位,圣杯及双飞翼布局。 圣杯布局 <!-- 圣杯布局 --> <!DOCTYPE html> <html> <head> <style> .con { padding: 0px 190px 0px 150px; overflow: auto; } .left {原创 2017-11-15 11:55:59 · 246 阅读 · 0 评论