css bottom属性怎么用


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

<html>

<head>

<style type="text/css">

img.ex1

{

position:absolute;

bottom:0px;

}

img.ex2

{

position:relative;

bottom:-100px;

}

</style>

</head>

<body>

<img class="ex1" src="http://ypimg.muzhuangnet.com/Collect/csharp/upload/article/000/005/656/5af270fd37755429.jpg" />

<h1>This is a heading</h1>

<img class="ex2" src="http://ypimg.muzhuangnet.com/Collect/csharp/upload/article/000/005/656/5af270fd37755429.jpg" />

</body>

</html>

效果输出:

f12bb102d89b75fa5b6426269f69a5c.png

以上就是css bottom属性怎么用的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css怎么设置字体大小

原生js如何修改css

css元素选择器的运作原理介绍

css怎么连接到html

css animation-fill-mode属性怎么用

css样式怎么隐藏起来

css 多种背景的使用场景和技巧以及好处

如何使用css来控制页面

css不可能实现的功能是什么

css语言入门视频教程推荐

更多相关阅读请进入《css》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...