我是一个HTML初学者,我试图创建ma网格和图像,并且我想翻转图像上的文本,但是我不能。有人会帮助我吗?我做了几个测试,没有任何工作。如果我停下来,我正在研究这个问题,并逐渐得到它,但这一次我需要帮助。代码:网格图像HTML
<!DOCTYPE html>
<html>
<head>
<style>
div.img {
margin: 5px;
border: 1px solid #ccc;
float: left;
width: 180px;
position:relative;
}
div.img:hover {
border: px solid #777;
}
div.img img {
width: 100%;
height: auto;
}
#NomeAnime {
position:relative;
width:98%;
left:2px;
top:-20%; /* Posição vertical */
color: white; /* Cor do texto */
font: bold 13px arial, sans-serif; /* Fonte */
text-align: center; /* Alinhamento */
height: 16px;
overflow: hidden;
background-color:green;
}
</style>
</head>
<body>
<div class="img">
<img src="http://iv1.lisimg.com/image/7814282/600full-asa-butterfield.jpg" alt="Trolltunga Norway" width="300" height="200">
<div id="NomeAnime">teste</div></div>
</div>
<div class="img">
<img src="http://iv1.lisimg.com/image/7814282/600full-asa-butterfield.jpg" alt="Forest" width="600" height="400">
<div id="NomeAnime">teste</div></div>
<div class="img">
<img src="http://iv1.lisimg.com/image/7814282/600full-asa-butterfield.jpg" alt="Northern Lights" width="600" height="400">
<div id="NomeAnime">teste</div></div>
</div>
<div class="img">
<img src="http://iv1.lisimg.com/image/7814282/600full-asa-butterfield.jpg" alt="Mountains" width="600" height="400">
<div id="NomeAnime">teste</div></div>
</div>
</body>
</html>
请翻译你的岗位上英语! – gyre
嗯,如果你可以把你的问题翻译成英文,那就太好了:-) – Swellar
我是一个HTML初学者,我正在尝试创建ma网格和图像,并且我想翻转图像上的文字,但是我不能。有人会帮助我吗?我做了几个测试,没有任何工作。如果我停下来,我正在研究这个问题,并逐渐得到它,但这一次我需要帮助。代码: – Swellar