!--[if IE 9] ![endif]--

<!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]-->
<!--[if IE]> 所有的IE可识别 <![endif]-->
<!--[if IE 6]> 仅IE6可识别 <![endif]-->
<!--[if lt IE 6]> IE6以及IE6以下版本可识别 <![endif]-->
<!--[if gte IE 6]> IE6以及IE6以上版本可识别 <![endif]-->
<!--[if IE 7]> 仅IE7可识别 <![endif]-->
<!--[if lt IE 7]> IE7以及IE7以下版本可识别 <![endif]-->
<!--[if gte IE 7]> IE7以及IE7以上版本可识别 <![endif]-->
<!--[if IE 8]> 仅IE8可识别 <![endif]-->
<!--[if IE 9]> 仅IE9可识别 <![endif]-->

项目范例说明
![if !IE]The NOT operator. This is placed immediately in front of the featureoperator, or subexpression to reverse the Boolean meaning of the expression.
NOT运算符。这是摆立即在前面的功能操作员,或子表达式扭转布尔表达式的意义。
lt[if lt IE 5.5]The less-than operator. Returns true if the first argument is less than the second argument.
小于运算符。如果第一个参数小于第二个参数,则返回true。
lte[if lte IE 6]The less-than or equal operator. Returns true if the first argument is less than or equal to the second argument.
小于或等于运算。如果第一个参数是小于或等于第二个参数,则返回true。
gt[if gt IE 5]The greater-than operator. Returns true if the first argument is greater than the second argument.
大于运算符。如果第一个参数大于第二个参数,则返回true。
gte[if gte IE 7]The greater-than or equal operator. Returns true if the first argument is greater than or equal to the second argument.
大于或等于运算。如果第一个参数是大于或等于第二个参数,则返回true。
( )[if !(IE 7)]Subexpression operators. Used in conjunction with boolean operators to create more complex expressions.
子表达式运营商。在与布尔运算符用于创建更复杂的表达式。
&[if (gt IE 5)&(lt IE 7)]The AND operator. Returns true if all subexpressions evaluate to true
AND运算符。如果所有的子表达式计算结果为true,返回true
|[if (IE 6)|(IE 7)]The OR operator. Returns true if any of the subexpressions evaluates to true.
OR运算符。返回true,如果子表达式计算结果为true。

 

 

<!--[if lt IE 9]>
加载CSS1
<!--[else]>
加载CSS2
<![endif]-->

这样有效是有效,但是用HTML VALIDATOR里,报错,因为这个不符合XHTML 1.1的规范,
如果把ELSE语句去掉,则正确.

 

方法1:2

加载CSS2
<!--[if lt IE 9]>
加载CSS1(可以把要重写的写在这里).
<![endif]-->

 

引用:http://www.cnblogs.com/thinkingthigh/archive/2013/06/19/3144239.html

转载于:https://www.cnblogs.com/ljbkyBlog/p/7686015.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/415544.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Android 将图片网址url转化为bitmap,drawable转bitmap,file转bitmap,bitmap转file,Bitmap转String,Uri转Bitmap

file转bitmap File param new File(); Bitmap bitmap BitmapFactory.decodeFile(param.getPath(&#xff09;); drawable转bitmap Bitmap bmp BitmapFactory.decodeResource(getResources(),R.mipmap.jcss_03 ); url转bitmap Bitmap bitmap; public Bitmap returnBitMa…

小程序 web-view 打开 微信公众号文章

首先微信小程序不能不能随便打开一个网址就能进行访问。 必须要配置业务域名。 但是&#xff0c;如果小程序和微信公众号进行了关联&#xff0c;则直接可以打开这个公众号到文章。 我已经测试过了。肯定好用。 还有一种方案&#xff0c;打开别人公众号的文章&#xff0c;你…

IP协议包中的TTL(Time-To-Live)

TTL(Time-To-Live)的作用是限制数据包在网络中存在的时间&#xff0c;防止数据包不断的在IP互联网络上循环。 TTL指定数据包被路由器丢弃之前允许通过的最大网段数量&#xff0c;是IP数据包在网络中可以转发的最大跳数(跃点数)&#xff0c;TTL位于IPv4包的第9个字节&#xff0c…

常用的方法论-PARR

转载于:https://www.cnblogs.com/qjm201000/p/7687470.html

小程序 自定义遮照 mask 禁止上下滑动

要写一个提示框&#xff0c;有灰度&#xff0c;放到正常页面最外层。发现上下滑动&#xff0c;里层的页面也会跟着上下动&#xff0c;其实只需要再设置一下page的属性就行了。 <style lang"less" scoped>.verify-mask {z-index: 99999;position: fixed;top: 0…

修改wireshark协议解析规则

不同的协议有不同的解码器,wireshark尝试为每个包尝试找到正确的解码器,特定的情况有可能会选择错误的解码器。 1.使用了其它协议的标准端口&#xff0c;被错误解码&#xff0c;使用udp的80端口发送数据被当作QUIC协议解析。 wireshark菜单“Analyze–>Enabled Protocols…”…

java 泛型类使用,集合中添加不同类型数据

添加 ArrayList<String> a new ArrayList<String>(); a.add("CSDN_SEU_Cavin"); Class c a.getClass(); try{Method method c.getMethod("add",Object.class);method.invoke(a,100);System.out.println("lgqname:" a); }catch(Ex…

小程序 遮照 mask 背景透明,里面内容不透明

1、错误的写法 .mask {background: black;opacity: 0.5; }2、正确的写法 .mask {background: rgba(0, 0, 0, 0.5); }

skt框架开发设计1

本系列文章将从零开始设计一套后台服务器框架&#xff0c;框架基于插件开发模式&#xff0c;最终各个插件相互独立&#xff0c;互相不依赖&#xff0c; 这样设计的好处是最终开发人员负责各个模块的开发&#xff0c;相互之间能够相对独立的进行&#xff1b;转载于:https://www.…

java集合数组,数组小到大排序,数组大到小排序

List<?>[] lsa new List<?>[10]; // OK, array of unbounded wildcard type. Object o lsa; Object[] oa (Object[]) o; List<Integer> li new ArrayList<Integer>(); li.add(new Integer(3)); oa[1] li; // Correct. Integer i (Integer) lsa…

端口占用

查看本地端口占用时发现有三种不同类型的监听方法&#xff1a;0.0.0.0:3602、127.0.0.1:3602、192.168.0.3:3602&#xff0c;其中IP&#xff1a;0.0.0.0代表当前设备的所有IP地址&#xff0c;使用这种方法监听的端口后面两种ip都可以连接&#xff0c;但这个IP并不真实存在&…

小程序中 使用fixed自定义弹窗时,底部长页面禁止滚动

原生小程序中可以在弹层上使用catchtouchmove&#xff0c;此事件会阻止向父元素冒泡&#xff0c;mpvue中使用touchmove.stop"()>{}"。

select into from和insert into select

select into from 和 insert into select都是用来复制表&#xff0c;两者的主要区别为&#xff1a;select into from 要求目标表不存在&#xff0c;因为在插入时会自动创建&#xff1b;insert into select 要求目标表存在 insert into select语法&#xff1a; Insert into Tab…

Fiddler过滤指定域名

Fiddler过滤指定域名的方法一 切换到fiddler右侧窗口的Filters选项卡&#xff0c;勾选顶部的“Use Filters”&#xff0c;找到Hosts区域&#xff0c;设置以下三个选项&#xff1a; 1.第一项有三个选项&#xff0c;不做更改&#xff1a; “No zone filter” “Show Only Intrane…

hapi logs 日志保存代码片段

按照每个块的大小 reporters: {fileReporter: [{module: good-squeeze,name: Squeeze,args: [{ ops: * }],},{module: good-squeeze,name: SafeJson,args: [null,{ separator: , },],}, {module: rotating-file-stream,args: [ops_log,{size: 10MB,path: ./logs,},],},],error…

Android dp转px,sp转px

/*** 将dip或dp值转换为px值&#xff0c;保证尺寸大小不变*/ public static int dip2px(Context context, float dipValue) {final float scale context.getResources().getDisplayMetrics().density;return (int) (dipValue * scale 0.5f); }/*** 将sp值转换为px值&#xff…