Home >Web Front-end >HTML Tutorial >HTML and CSS browser compatibility_html/css_WEB-ITnose

HTML and CSS browser compatibility_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:00:101034browse

Why do I use CSS to tile a pixel image using repeat-x but it does not display on IE, but other browsers display normally
This is the code
#oned{
background: url(images/ seedlings_02.png) repeat-x;
width:10%;
height:99.5%;
float:left;
border:#000 1px solid;
}Thank you everyone


Reply to the discussion (solution)

Is there any content in your #oned element? If it is an empty node, add one and try it.

 
has no effect.

Setting the width and height of Shenma elements, inline elements such as a span has no effect

Thank you everyone, solved

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