本文摘自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实现一个个人信息表的网页(代码实例)
Html param标签怎么用?Html param标签属性实例详解
Html下拉框怎么做
Html文件怎么转换成jsp文件
Html怎么取消滚动条
用Html创建canvas画布生成图片
Html summary标签怎么用
Html 属性
如何用Html显示分割
Html中的描述列表怎么表示
更多相关阅读请进入《Html》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » html页面公共样式有哪些