随笔分类 - CSS
摘要:::before { content: ""; position: absolute; top: -20px; left: 50%; width: 0px; height: 0px; border: 10px solid transparent; /*以下四个样式对应四种三角形,任选其一即可实现*/
阅读全文
摘要:效果图: 1、HTML <div class="digits" id="digits" v-html="html"></div> 2、JS clocknum(num) { var html = ""; var strarr = num.toString().split(""); var digit_
阅读全文
摘要:/* 显示一行,省略号 */ white-space: nowrap; text-overflow: ellipsis; overflow: hidden; word-break: break-all; /* 显示两行,省略号 */ text-overflow: -o-ellipsis-lastli
阅读全文
摘要:1、控制单一属性,进行单一属性的样式过度 .class1 { width: 100px; transition: width 2s; -moz-transition: width 2s; /* Firefox 4 */ -webkit-transition: width 2s; /* Safari
阅读全文