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

DIV CSS entry case_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:50:57
Original
991 people have browsed it

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>
Copy after login


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


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