Home >Web Front-end >HTML Tutorial >DIV CSS entry case_html/css_WEB-ITnose

DIV CSS entry case_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:50:57995browse

Mainly consists of two files, one is .html and the other is .css. One for storing data, and one for layout

Without further ado, just write the code directly:

test.html

<html><head>	<title>CSS</title>	<!-- 引入CSS -->	<link rel="stylesheet" type="text/css" href="<span style="color:#ff0000;">my.css</span>"/></head><body>	<div class="stylelOne">		<img src="ok.PNG"/>	</div></body></html>


my.css
.stylelOne{	/* 宽度 */	width: 1000px;	height: 1000px;	background-color: silver;}
The execution effect of the above code is as follows:


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