摘要:
给 父元素 添加 text align: center 即可。 body { text align: center; background color: black; } outer { margin: 10px auto; background color: white; border radiu 阅读全文
摘要:
用 object fit:cover object fit属性详解 object fit:CSS 属性指定替换元素的内容应该如何适应到其使用的高度和宽度确定的框。 1. object fit:fill 被替换的内容大小可以填充元素的内容框,整个对象将完全填充此框,如果对象的宽高比不匹配其框的宽高比, 阅读全文