Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.5k views
in Technique[技术] by (71.8m points)

这是浏览器的Bug吗?<link>参数顺序不同导致浏览器不加载css

image.png
如图,把href放在最后面,浏览器就直接不加载了,href那里连超链接波浪线都没有。

image.png
随便调换一下顺序就好了。

image.png

进一步调查发现,这个问题只在href用单引号括起来的时候会出现,用双引号括起来就没事了。

我的是Chrome内核的Edge,有兴趣的朋友可以试下自己的浏览器有没有这个行为。<link rel="stylesheet" type="text/css" href='style.css'>


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

同样chromium的edage,未有问题。版本是?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...