如果只是一个简单网页,小子一般如下操作。兼容也主要是为了兼容IE浏览器……主要是不少网站现在仍要求仅老版本的IE浏览器能正常浏览,比较坑…… <!--[if IE 6]> <style>
.divNavigation a:first-child { display: inline-block; border-left: 1px solid yellow; } </style> <![endif]--> <!--[if IE 7]> <style> .divNavigation a:first-child { display: inline-block; border-left: 1px solid gray; } </style> <![endif]--> <!--[if IE 8]> <style> .divNavigation a:first-child { display: inline-block; border-left: 1px solid red; } </style> <![endif]--> 若是需要引入外链CSS文件,则将<style>标签换为引入外链的方式即可。 |
|