❶ 如何用html在图片上显示文字

用js写,先得到图片的offsetLeft和offsetTop,然后写个div层吧层定位到图片的位置。层里写字就行了

❷ html图片嵌入文字

<html>
<head>
<title>
test
</title>
</head>
<bodystyle="margin:0;padding:0;">
<divstyle="margin:0;padding:0;width:960px;">
<imgsrc="xx.jpg"/>
<divstyle="bottom:200px;position:relative;text-align:center;">居中</div>
</div>

</body>
</html>

楼主可以参考一下,width属性和内bottom属性可以自己视情况容而定

❸ HTML怎么在图片上加入文字

使用定位来写的,首先一个大盒子装着图片,

然后一个盒子装着头像和文字,把装着头像和文字

的盒子根据装着图片的盒子进行定位就可以了,

像这样的其实很简单的,要多思考和分析

代码,要注意图片你要自己放图片,和修改图片路径

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8"/>

<title>图片上放文字</title>

<style type="text/css">

html,body{

margin:0;

}

.auto-img{

display: block;

width:100%;

}

.box{

width:100%;

margin-top: 50px;

}

.box-cent{

width:50%;

margin:0 auto;

position: relative;

}

.texbox{

position: absolute;

width:50%;

line-height: 80px;

background-color: #0f0;

text-align: center;

top:50%;

left:50%;

transform: translate(-50%, -50%);

}

</style>

</head>

<body>

<div class="box">

<div class="box-cent">

<img class="auto-img" src="images/000.jpg"/>

<div class="texbox">我是用来装头像和文字的盒子</div>

</div>

</div>

</body>

</html>

❹ html的图片和文字

使用腾讯公司的最新版的TT浏览器.
TT浏览器上方工具栏的右侧,有个网页提专取.
网页提取里有几个选属项
一是文字提取,把网页的所有文字提出来,其它的都不提.
二是图片提取,把网页上的所有图片提出来,其它都不提.
还有其它提取.自己看看吧.

❺ html里怎么实现图片跟文字的混合排版

最简单的方法是使用浮动。

❻ html+css怎么在图片上添加文字

要在图片上显示文字,还要在放大缩小的时候文字不到处乱跑,这个就要用盒模型里面的大盒子套小盒子的方法了。下面举个小例子给你看看。

html大致样子:

<body>

<div id="box1">

<div id="box2">

<img src="https://www..com/img/bd_logo1.png">

</div>

<div id="wenzi">这里是文字</div>

</div>

</body>

css文件:


#box1{

position:relative;

width:500px;

height:500px;

margin:0 auto;

}


#box2{

position:relative;

width:100%;

height:100%;

}


img{

position:relative;

clear:both;

width:100%;

height:100%;

}


#wenzi{

position:relative;

clear:both;

width:100%;

top:-50%;

text-align:center;

color:black;

font-size:2em;

}


效果图片:

用这种方法有个好处,就是做响应布局的时候,或者用户在浏览器上放大缩小的时候,网页整体也跟着放大缩小,不会元素到处乱跑或者某个文字跑出来,这样看起来整体感要强烈一点。


这种做法的不足之处:div盒子有点多,html代码看起来比较臃肿,大盒子套着小盒子。做大页面的时候一个htm看起来眼花缭乱的。但只要做好了注释,还是分得清楚的啦,主要是这样弄看起来页面整齐一点。

❼ html -- 图片上添加文字

可以。

以html为例,步骤:

一、在body中建立文字信息以及图片内容,也就是在header中包含两个同级,图片和文字。

❽ html怎样在图片右侧写文字

1、首先先准备图片素材和文字语言。

❾ html+css如何在图片上添加文字

绝对定位了解一下。

<divclass="box">
<imgsrc="图片路径">
<p>我是文字我是文字</p>
</div>
.box{position:relative;width:500px;}
.boximg{width:100%;}
.boxp{position:absolute;width:300px;height:60px;left:100px;bottom:0px;}