css box-orient属性怎么用


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

<!DOCTYPE html>

<html>

 

    <head>

        <meta charset="UTF-8">

        <style>

            div {

                width: 350px;

                height: 150px;

                border: 1px solid black;

                /* Firefox */

                display: -moz-box;

                -moz-box-orient: horizontal;

                /* Safari, Opera, and Chrome */

                display: -webkit-box;

                -webkit-box-orient: horizontal;

                /* W3C */

                display: box;

                box-orient: horizontal;

            }

        </style>

    </head>

 

    <body>

 

        <div>

            <p>段落 1。</p>

            <p>段落 2。</p>

            <p>段落 3。</p>

        </div>

 

        <p><b>注释:</b>IE 不支持 box-orient 属性。</p>

 

    </body>

 

</html>

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

返回前面的内容

相关阅读 >>

css怎么显示滚动条

css的rem是什么

css中用什么属性来定义盒的类型

css怎么隐藏div

css伪元素是用来干嘛的

css动画怎么匀速

怎么创建css文件

css的sass样式应该怎么使用

css怎么设置首行缩进2字符

两分钟带你了解在css中三种使图片居中的方法

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




打赏

取消

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

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

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

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

评论

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