前端-html-需要熟悉的标签+把图片插入网页

图片插入网页

<html>

<body>

<img=".png",style="height:123px;  " />

</body>

</html>

1.相对路径  ..本文件上一级  2.图片格式   3.style限定太多,太冗杂解决办法:

<img="..",class="header-img

</body>
<style>
.header-img{
margin-top:409px;
margin-left:315px;
width:175px;
height:42px;
}
</style>

高度宽度等可以在 f12--一个左上有箭头的框框-点击图片-zhi直接更改下方数据或用箭头上下更改

猜你喜欢

转载自blog.csdn.net/qq_21740193/article/details/82291615
今日推荐