![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Web前端设计
MissGeng
爱交友,喜欢和他人分享知识。
展开
-
响应式布局
响应式布局原创 2017-03-30 21:38:08 · 425 阅读 · 0 评论 -
DIV居中的几种方法
1. body{ text-align:center; }缺点:body内所有内容一并居中2..center{ width:500px; margin: 0 auto;}缺点:需要设置div宽度3..center{ margin: auto; position: absolute; left:原创 2017-03-30 23:15:28 · 1016 阅读 · 0 评论 -
css遮罩层及遮罩层gif图片居中
遮罩层css代码:.xy-backdrop{ display: none; position: fixed; z-index: 998; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0,0,0,.3);}图片居中:.xy-backdrop im原创 2017-05-31 14:18:39 · 1942 阅读 · 1 评论 -
css弹出框
css代码:.yx-dialog-info{ display: none; border: 1px red #f7f7f7; z-index: 999; border-radius: 10px; width: 270px; height: 100px; position: absolute; top: 50%; left: 50%; transform: translate原创 2017-05-31 14:28:43 · 642 阅读 · 0 评论