【发布时间】:2017-06-20 15:42:44
【问题描述】:
<html>
<head>
<title>mohit</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body{margin: 0}
#mohit1{
width: 100%;
height: 211.5px;
background: orange;
}
#mohit2{
width: 100%;
height:211.5px;
background: white
}
#mohit3{
width: 100%;
height: 211.5px;
background: green;
}
</style>
</head>
<body>
<div id="mohit1"></div>
<div id="mohit2"> <center> <img src="C:/Users/WELCOME/Desktop/flag.png" width="210" height="210" alt="chakra" /> </center> </div>
<div id="mohit3"></div>
</body>
当我在 netbeans 中运行此页面时,它只显示具有定义宽度和长度的图像框架,而不是实际图像。但是如果我用记事本运行它运行良好。
【问题讨论】:
-
你能把它变成 jsfiddle 吗?
标签: html css image netbeans web-applications