English 中文(简体)
在<链接>标签上添加id/class吗?
原标题:Is it okay to add id/class to <link> tag?
  • 时间:2012-04-09 17:58:02
  •  标签:
  • html

Is it okay to do this?

<link rel="stylesheet" href="css/mobile/load.css" id="stylesheet_mobile" />

因此,我可以把 Java带给充满活力的风格。

最佳回答

问题回答

是的,你可以。 核心属性见<代码><link> 元件,包括<代码> 字标/代码>、<代码>>>>>>>、<代码>id和。 虽然这并不是一个因素,但阶级和风格却取得了任何效果。

<!ENTITY % coreattrs
 "id          ID             #IMPLIED  -- document-wide unique id --
  class       CDATA          #IMPLIED  -- space-separated list of classes --
  style       %StyleSheet;   #IMPLIED  -- associated style info --
  title       %Text;         #IMPLIED  -- advisory title --"
  >

是的。 某些属性可在每一方面具体指明。 <代码>id和>>> 载于其中。

http://developers.whatwg.org/elements.html#global-attributes"rel=“nofollow”http://developers.whatwg.org/elements.html#global-attributes

The spec for the link element: http://developers.whatwg.org/semantics.html#the-link-element

http://www.w3.org/TR/html401/struct/links.html#h-12.3” rel=“nofollow”http://www.w3.org/TR/html401/struct/links.html#h-12.3

是。 该建议并未被建议,因为这意味着要装上几个档案(多份吉大港定居地申请),而不是装上一个较大的档案(但只有一份吉大港定居申请)。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签