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中7个你必须知道属性

css如何垂直对齐容器中的元素

css left属性怎么用

css如何去除inline-block元素间的间距?(多种方法)

css padding属性怎么用

css color属性怎么用

css怎么设置元素透明度

浅谈使用css实现半透明边框和多重边框效果的方法

css中&表示什么意思

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




打赏

取消

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

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

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

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

评论

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