您当前的位置: 首页 > 

暂无认证

  • 3浏览

    0关注

    92582博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

详解:20 :before :after attr

发布时间:2020-04-26 11:18:29 ,浏览量:3

"en">"UTF-8">Document
		

"test1" title="hello world" data-url="http://phpfamily.org" data-qq="2306613258">hello king

"test2" style="color: red;border: 1px solid red;">this is a test!

这个比较不容易,我还是截图把

在这里插入图片描述

是什么? :before :after attr() 在什么之前做什么,在什么之后做什么 attr() 函数返回选择元素的属性值。 怎么运用? 问题? 为什么第一个的hello king在前面,而第二个的this is a test!在后面呢? 解决? 记住了,核心来了了 因为:after是代表属性值在内容的后面,所以内容在前面哈 因为:before代表属性值在内容的前面也就是在this is a test!的前面

懂了把,兄弟,兄弟,不急,慢慢来就理解了

关注
打赏
1653961664
查看更多评论
立即登录/注册

微信扫码登录

0.0484s