Home >Web Front-end >HTML Tutorial >Why does the css file not work_html/css_WEB-ITnose

Why does the css file not work_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:20:141015browse

File: div-1.html




div css


One column with fixed width





File: div -1.css
#layout {
background-color:#cccccc;
border:2px solid #333333;
width:300px;
height:300px;
}

Running results:


Reply to the discussion (solution)

I didn’t see that you have a statement to import the css file.

Add HTML

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