弹性布局
文章平均质量分 83
有关弹性布局的一些思考与分享
云墨-款哥的博客
一个永远在路上的程序猿
展开
-
分享一下自己最近写的一个移动端项目积累的一些实用技巧
1·样式重置文件 请注意下面清除内外边距等样式并未使用通配符选择器*,因为通配符选择器的权重值太低。 html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, s原创 2021-06-10 00:13:30 · 195 阅读 · 4 评论 -
CSS常用的水平垂直居中方式
一、文本图片实现水平垂直居中 给文本以及图片所在的标签设置text-align:center,实现水平居中,然后在设置line-height属性与height一致实现垂直居中 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0原创 2021-06-01 21:34:38 · 152 阅读 · 0 评论