好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > IE條件語句 IE hack大全

IE條件語句 IE hack大全

熱門標簽:熱血傳奇沃瑪森林地圖標注 鄭州中國移動400電話申請 去哪里辦卡 南召400電話辦理資費 地圖標注審核工作怎么樣注冊 無錫電銷機器人銷售 招聘信息 地圖標注植物名稱 揭陽外呼系統公司 福建ai電銷機器人加盟公司
Conditional comments work as follows:
復制代碼 代碼如下:

!--[if IE 6]>Special instructions for IE 6 here![endif]-->
[code]

Their basic structure is the same as an HTML comment (!-- -->). Therefore all other browsers will see them as normal comments and will ignore them entirely.
IE, though, has been programmed to recognize the special !--[if IE]> syntax, resolves the ifand parses the content of the conditional comment as if it were normal page content.
Since conditional comments use the HTML comment structure, they can only be included in HTML files, and not in CSS files. I'd have preferred to put the special styles in the CSS file, but that's impossible. You can also put an entire new link> tag in the conditional comment referring to an extra style sheet.
Example
Below I added a lot of conditional comments that print out messages according to your IE version.

Note however, that if you use multiple Explorers on one computer, the conditional comments will render as if all these Explorer versions are the highest Explorer version available on your machine (usually Explorer 6.0).

Test
Below are a few conditional comments that reveal the IE version you're using.

According to the conditional comment this is IE
According to the conditional comment this is IE 7
According to the conditional comment this is IE lower than 9
According to the conditional comment this is IE lower or equal to 7
According to the conditional comment this is IE greater than 6

Code
The syntax I use is:
[code]
p class="accent">
!--[if IE]>
According to the conditional comment this is IEbr />
![endif]-->
!--[if IE 6]>
According to the conditional comment this is IE 6br />
![endif]-->
!--[if IE 7]>
According to the conditional comment this is IE 7br />
![endif]-->
!--[if IE 8]>
According to the conditional comment this is IE 8br />
![endif]-->
!--[if IE 9]>
According to the conditional comment this is IE 9br />
![endif]-->
!--[if gte IE 8]>
According to the conditional comment this is IE 8 or higherbr />
![endif]-->
!--[if lt IE 9]>
According to the conditional comment this is IE lower than 9br />
![endif]-->
!--[if lte IE 7]>
According to the conditional comment this is IE lower or equal to 7br />
![endif]-->
!--[if gt IE 6]>
According to the conditional comment this is IE greater than 6br />
![endif]-->
!--[if !IE]> -->
According to the conditional comment this is not IEbr />
!-- ![endif]-->
/p>

Note the special syntax:

gt: greater than
lte: less than or equal to
Also note the last one. It has a different syntax, and its contents are shown in all browsers that are not IE:
復制代碼 代碼如下:

!--[if !IE]> -->


CSS hack?
Are conditional comments CSS hacks? Strictly speaking, yes, since they can serve to give special style instructions to some browsers. However, they do not rely on one browser bug to solve another one, as all true CSS hacks do. Besides, they can be used for more than CSS hacks only (though that rarely happens).

Since conditional comments are not based on a browser hack but on a deliberate feature I believe they are safe to use. Sure, other browsers could implement conditional comments, too (though as yet none have done so), but they're unlikely to react to the specific query !--[if IE]>.

I use conditional comments, though sparingly. First I see if I can find a real CSS solution to an Explorer Windows problem. If I can't, though, I don't hesitate to use them.

Comment tag
A reader told me IE also supports the (non-standard) comment> tag.

p>This is comment>not/comment> IE./p>

This isIE.

This tag might be a replacement for the !IE conditional comment.

標簽:宣城 黔南 桂林 南昌 景德鎮 鹽城 東莞 文山

巨人網絡通訊聲明:本文標題《IE條件語句 IE hack大全》,本文關鍵詞  條件,語句,hack,大全,條件,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《IE條件語句 IE hack大全》相關的同類信息!
  • 本頁收集關于IE條件語句 IE hack大全的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 色内内免费视频观看韩| 女人裸全乳照片正面| 精无国产一区二区三区在线蜜| 武则天一级毛片| 又黄又爽禁片| 一婬妇片A片AAA毛片秋霞| 被黑人玩到失控的番号| 亚洲日本va中文字幕在线不卡| 成人午夜在线视频| 性性爽视频在线观看直播| 久久亚洲一级毛片| 国产精品久久久久久久漫画软件| 国产第一浮力| 日日搞| 欧洲中文字幕| 男女在线网站| 帝枭盛宠总统大人买一送二| 一级特黄录像免费播放下载软件| 啊轻点啊再深点宝贝| 中国老太浓毛毛茸毛| 91福利免费体验区试看一分钟| 日本美女一区二区| 亚洲AV成人片无码网站2023| 最近国语在线视频观看| 国精产品一区一区三区使用方法| ass俄罗斯肥女肥臀pics| 香蕉eeww99国产在线观看| 上课高h调教| t大校花的复仇在线阅读| 用力日| 免费观看又色又爽又黄的忠诚| 久草不卡视频| 伊人婷婷色香五月综合缴缴情小蛇| 国产AV成人免费视频乱吃皇帝 | 久久久久久精品免费免费导航| 一二三四高清在线观看视频中文| 冬儿大户人家杨家| 女性勃起全过程视频| 久久99精品久久久水蜜桃| 成人午夜试看120秒体验区| 久久久久香蕉视频|