摘要: width: 300px; height: 100px; border: 1px solid rgb(0, 255, 242); border-radius: 8px; background-color: rebeccapurple; 阅读全文
posted @ 2020-10-16 11:49 八英里 阅读(934) 评论(0) 推荐(0) 编辑
摘要: background-color: #d4d4d4; width: 64px; text-align: center; display: flex; justify-content: center; align-items: center; height: 50px; 阅读全文
posted @ 2020-10-16 11:48 八英里 阅读(755) 评论(0) 推荐(0) 编辑
摘要: html 中设置span的width完美解决方法 在默认情况下,由于span是行标签,设置width是无效的。只有改变display的属性,才可以实现设置宽度。 1.初步想法 span{ display:block; width:50px; } 如果想span单独成行,不与前后内容链接,可以这样写。 阅读全文
posted @ 2020-10-16 11:25 八英里 阅读(963) 评论(0) 推荐(0) 编辑