Home >Web Front-end >HTML Tutorial >css background:属性问题_html/css_WEB-ITnose

css background:属性问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:36:061107browse

background: url(Plus.png) no-repeat scroll 90% 90% / auto 90%;这个斜杠后面是什么意思
斜杠前面的90% 90%又是什么意思呢



是background-size吗?


回复讨论(解决方案)

background-size,第一个90%是宽,第二个90%是高

“ / ” 后面的背景属性是CSS3新增的,有三个:[ background-size]  [background-origin] [background-clip];

background: [background-color] [background-image] [background-repeat]            [background-attachment] [background-position] / [ background-size]            [background-origin] [background-clip];

参考: CSS的background简写方式里新增了新的属性值

Statement:
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