html页面公共样式有哪些


本文摘自PHP中文网,作者php中世界最好的语言,侵删。

这次给大家带来html页面公共样式有哪些,使用html页面公共样式的注意事项有哪些,下面就是实战案例,一起来看一下。

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

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select {  

            margin: 0;  

            padding: 0;  

        }  

   

        * {  

            box-sizing: border-box;  

        }  

        table{  

            border-collapse:collapse;  

        }  

        body {  

            font-family: "Microsoft YaHei";  

        }  

   

        ul, li {  

            list-style: none;  

        }  

   

        a {  

            text-decoration: none;  

            color: #232323;  

        }  

   

        input, textarea {  

            outline: none;  

            box-shadow: none;  

        }  

   

        textarea {  

            resize: none;  

            overflow: auto;  

        }  

   

        .clearfix {  

            zoom: 1;  

        }  

   

        .clearfix:after {  

            content: ".";  

            width: 0;  

            height: 0;  

            visibility: hidden;  

            display: block;  

            clear: both;  

        }  

   

        .fl {  

            float: left  

        }  

   

        .fr {  

            float: right  

        }  

   

        .tl {  

            text-align: left;  

        }  

   

        .tc {  

            text-align: center  

        }  

   

        .tr {  

            text-align: right;  

        }  

   

        .ellipse {  

            overflow: hidden;  

            text-overflow: ellipsis;  

            white-space: nowrap;  

        }

相信看了这些案例你已经掌握了方法,更多精彩请关注php中文网其它相关文章!

相关阅读:

HTML文本格式化的实例详解

html的特殊字符-css3 content:"特殊符号"应该如何使用

Html网页表格结构化标记该如何使用

以上就是html页面公共样式有哪些的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

Html中id属性和name属性的区别是什么

Html/css/js是什么关系

Html怎么隐藏div元素

Html可以引入Html

网页开发如何引入图标

Html网页制作的基本步骤是什么

Html acronym标签怎么用

Html中定义多个class属性无效

怎样实现Html的可输入下拉菜单

Html的<style>标签

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




打赏

取消

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

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

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

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

评论

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