对齐图像底部的文字? [英] align text at bottom of image?

查看:93
本文介绍了对齐图像底部的文字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有css我的页面如下所示:
天使官方网站:我的男朋友回来了!


使用css,到目前为止我已经达到了这一点:
天使官方网站:我的男朋友回来了!


怎么做我得到它:
(1)图像窗口顶部没有空间

(2)文字在图像底部对齐

(3)图像底部没有被切断



css代码的实质部分是:

without css my page looks like this:
The Official Website of The Angels: My Boyfriend''s Back!

using css, so far i have gotten it to this point:
The Official Website of The Angels: My Boyfriend''s Back!

how do i get it so that:
(1) the image has no space at the top of the window
(2) text aligns at bottom of image
(3) the image isn''t cut off at the bottom



the substantive part of the css code is:

展开 | 选择 | < /秒pan> Wrap | 行号

推荐答案

首先,你必须按顺序获取你的html。你没有doctype。如果没有一个,浏览器会进入怪癖模式,你永远不会想要这样,而IE尤其不会像现代浏览器那样进行微弱的尝试。


在你的第一行添加:


<!DOCTYPE html PUBLIC" - // W3C // DTD HTML 4.01 / / EN"

" http://www.w3.org/TR/html4/strict.dtd">


然后,验证您的HTML 你的css
First, you have to get your html in order. You have no doctype. Without one, browsers go into quirks mode, where you never want to be, and IE in particular won''t make its feeble attempt at performing like the modern browsers.

On your very first line add this:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Then, validate your html and your css for those lists of any errors.


哇。好吧,当我添加它消灭了firefox中的大部分可查看页面...!

???


我可以先得到一些实质性答案对于格式化问题,我会担心合规性。
Wow. Well when I added that it wiped out most of the viewable page in firefox...!
???

Instead can I first get some substantive answers to the formatting questions, then I''ll worry about compliance.


为什么我们不帮你


这篇关于对齐图像底部的文字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆