asp.net中图像和段落的布局问题 [英] problem with layout with image and paragraph in asp.net

查看:66
本文介绍了asp.net中图像和段落的布局问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,我在设计页面时遇到问题


|''''''''''''''''|
|图片|
| 、、、、、、、、、 |段从此处开始,



但我想做,


|''''''''''''''''|欢迎来到我们的网站
|图片|
| 、、、、、、、、 |

我使用过跨度,但效果不佳,请帮助我

Hi friends i have a problem with designing my page is look like


|''''''''''''''''''|
| image |
|,,,,,,,,,|paragraph start with here,



but i want to make,


|''''''''''''''''''|welcome to our site
| image |
|,,,,,,,,,|

i have use span but it can not give very much effect please help me

推荐答案

考虑购买一本HTML书籍或学习使用Google.

http://www.google. com.au/search?rlz=1C1WZPD_enAU393AU394&sourceid=chrome&ie=UTF-8&q=html+image+alignment [
Consider buying a book on HTML, or learning to use google.

http://www.google.com.au/search?rlz=1C1WZPD_enAU393AU394&sourceid=chrome&ie=UTF-8&q=html+image+alignment[^]

Also, as someone said, this is a HTML question, it has nothing to do with ASP.NET. You just happen to be using ASP.NET to generate HTML, if you were using PHP, your question would be the same.


使用CSS和属性vertical-align:

Use CSS and the property vertical-align:

<img src="images/myPicture.jpg" />
<span style="vertical-align:bottom; padding-left:1em;">Here</span>

<img src="images/myPicture.jpg" />
<span style="vertical-align:top; padding-left:1em;">Here</span>



参见
http://www.w3schools.com/css/pr_pos_vertical-align.asp [ ^ ]其他选项.

—SA



See http://www.w3schools.com/css/pr_pos_vertical-align.asp[^] for other options.

—SA


使用CSS学习HTML概念,尝试添加DIV和SPAN标签

祝你好运
Learn HTML concepts with CSS try to add DIV and SPAN tags

Good Luck


这篇关于asp.net中图像和段落的布局问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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