css hack 9的作用是什么_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:28:41
Original
1437 people have browsed it

css hack \9的作用是什么:
在一些css代码中可能会有\9身影的出现,下面就介绍一下它的作用是什么。
代码如下:

<!DOCTYPE html><html><head><meta charset=" utf-8"><meta name="author" content="http://www.softwhy.com/" /><title>蚂蚁部落</title><head><style type="text/css">div{   width:170px;   height:140px;   background:green\9;} </style></head><body><div></div></body></html>
Copy after login

上面的代码经过测试,IE6-IE10可以将div的背景颜色设置为绿色,其他浏览器不行。

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=15390

更多内容可以参阅:http://www.softwhy.com/divcss/

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template