Home >Web Front-end >HTML Tutorial >DIV CSS entry case_html/css_WEB-ITnose
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
<title>CSS</title> <!-- 引入CSS --> <link rel="stylesheet" type="text/css" href="<span%20style=" color:>my.css"/> <div class="stylelOne"> <img src="/static/imghwm/default1.png" data-src="ok.PNG" class="lazy" alt="DIV CSS entry case_html/css_WEB-ITnose" > </div>
.stylelOne{ /* 宽度 */ width: 1000px; height: 1000px; background-color: silver;}The execution effect of the above code is as follows: