随笔分类 -  css

摘要:(15条消息) CSS文本设置超出2行显示省略号_老电影故事的博客-CSDN博客_css两行超出省略 阅读全文
posted @ 2023-01-09 15:24 最好的年纪 阅读(28) 评论(0) 推荐(0)
摘要:案例一:import方式 参考原文地址:https://blog.csdn.net/weixin_41538490/article/details/89436883 案例二:HTML引入方式 1.首先在阿里妈妈图标库把想要的图标加入购物车,这里以二维码图标为例,可以加入多个图标。 2.然后点击左上角 阅读全文
posted @ 2020-08-05 14:29 最好的年纪 阅读(2224) 评论(0) 推荐(0)
摘要:原文链接:https://blog.csdn.net/yang031997/article/details/102944791 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" c 阅读全文
posted @ 2020-07-28 16:18 最好的年纪 阅读(10754) 评论(0) 推荐(0)
摘要:例如: .element{ width:calc(expression); } 兼容性:在IE9+、FF4.0+、Chrome19+、Safari6+都得到了较好支持,但是在移动端的支持不是很好。 其中,expression是一个用来计算长度的表达式,支持“+”,“-”,“*”,“/”运算符。 表达 阅读全文
posted @ 2018-06-29 09:17 最好的年纪 阅读(263) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-05-15 13:45 最好的年纪 阅读(109) 评论(0) 推荐(0)
摘要:方法一: 方法二: 阅读全文
posted @ 2018-05-10 16:21 最好的年纪 阅读(234) 评论(0) 推荐(0)
摘要:未禁用: 效果: 禁用: 效果: 阅读全文
posted @ 2018-05-09 11:41 最好的年纪 阅读(168) 评论(0) 推荐(0)
摘要:效果: 原文地址:https://www.cnblogs.com/leona-d/p/6125896.html 阅读全文
posted @ 2018-04-25 11:02 最好的年纪 阅读(285) 评论(0) 推荐(0)
摘要:效果: 知识点传送门:http://www.zhangxinxu.com/wordpress/2016/06/png-icon-change-color-by-css/ http://www.zhangxinxu.com/study/201606/png-icon-color-fill.html 阅读全文
posted @ 2018-04-11 10:34 最好的年纪 阅读(197) 评论(0) 推荐(0)
摘要:使用方式: 在html页面开头,引入下面的原生js代码 上述js的意思是: 如果页面的宽度超过了640px,那么页面中html的font-size恒为100px,否则,页面中html的font-size的大小为: 100 * (当前页面宽度 / 640) rem原理: 为什么是640px? 对于手机 阅读全文
posted @ 2018-04-11 10:24 最好的年纪 阅读(11643) 评论(4) 推荐(0)
摘要:原文:https://www.cnblogs.com/caojiayan/p/6343917.html /* CSS Document */ html, body, div, span, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pr 阅读全文
posted @ 2018-03-20 15:00 最好的年纪 阅读(160) 评论(0) 推荐(0)
摘要:原文:http://www.ruanyifeng.com/blog/2009/04/float_clearing.html 方法1:添加空元素 原理:父容器必须考虑非浮动子元素的位置,而后者肯定出现在浮动元素下方,所以显示出来,父容器就把所有子元素都包括进去了。 优点:这种方法比较简单 缺点:要在页 阅读全文
posted @ 2018-03-20 10:08 最好的年纪 阅读(90) 评论(0) 推荐(0)