HTML怎么使段落的首字母浮动于左侧


这篇文章主要介绍“HTML怎么使段落的首字母浮动于左侧”,在日常操作中,相信很多人在HTML怎么使段落的首字母浮动于左侧问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”HTML怎么使段落的首字母浮动于左侧”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

<html>

<head>

<style type="text/css">

img

{

float:right;

border:1px dotted black;

margin:0px 0px 15px 20px;

}

</style>

</head>

<body>

<p>在下面的段落中,图像会浮动到右侧,并且添加了点状的边框。我们还为图像添加了边距,这样就可以把文本推离图像:上和右外边距是 0px,下外边距是 15px,而图像左侧的外边距是 20px。</p>

<p>

<img src="/i/eg_cute.gif" />

This is some text. This is some text. This is some text.

This is some text. This is some text. This is some text.

This is some text. This is some text. This is some text.

This is some text. This is some text. This is some text.

This is some text. This is some text. This is some text.

This is some text. This is some text. This is some text.

This is some text. This is some text. This is some text.

This is some text. This is some text. This is some text.

This is some text. This is some text. This is some text.

This is some text. This is some text. This is some text.

</p>

</body>

</html>

到此,关于“HTML怎么使段落的首字母浮动于左侧”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注主机评测网网站,小编会继续努力为大家带来更多实用的文章!


上一篇:HTML怎么相对于一个元素的正常位置来对其定位

下一篇:css图片怎么实现垂直


Copyright © 2002-2019 测速网 www.inhv.cn 皖ICP备2023010105号
测速城市 测速地区 测速街道 网速测试城市 网速测试地区 网速测试街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!

热门搜索 城市网站建设 地区网站制作 街道网页设计 大写数字 热点城市 热点地区 热点街道 热点时间 房贷计算器