将CSS include包含在主体中间有多糟糕? [英] How bad is it to put a CSS include in the middle of the body?

查看:78
本文介绍了将CSS include包含在主体中间有多糟糕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题出现在这个问题之后

原因大致相同,为了使内容更整洁,调用起来有多糟糕(请确保CSS不会与覆盖冲突)标记)

The reasons are pretty much the same, to keep the stuff cleaner, how bad is it to call (being sure the css doesn't collide with overwriting tags)

放入< link rel = stylesheet type = text / css href = mycss.css> 在身体中间? (如果可行)

To put <link rel="stylesheet" type="text/css" href="mycss.css"> in the middle of the body? (if it works)

因此,在某些情况下,我可以为特定模块包括特定的CSS。

So that in some cases I could have specific css for a specific module include.

推荐答案

< link> 仅允许在< head> 中使用文档部分:文档关系:LINK元素

<link> is only permitted in the <head> section of a document: Document relationships: the LINK element

这篇关于将CSS include包含在主体中间有多糟糕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆