HTML/CSS/JavaScript在线编辑器

x
 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>AI悦创(Bornforthis)</title>
<style>
div.ex
{
width:220px;
padding:10px;
border:5px solid gray;
margin:0px;
}
</style>
</head>
<body>
<img src="./img/250x250px.gif" width="250" height="250" />
<div class="ex">上面的图片是250 px宽。
这个元素的总宽度也是250 px。</div>
</body>
</html>