css
1:让表格页面居中
style="margin-left:auto; margin-right:auto; width:auto;"
2:隐藏滚动条
overflow-x:hidden 或者 overflow-y:hidden x是横向的 y是纵向的
3:图片居中
width:80%; height:600px; border: thin solid #F00; margin:0 auto;
4:显示滚动条
<style type="text/css"> html {overflow:-moz-scrollbars-vertical;} /*方法一*/ html {min-height:101%;} /*方法二*/ </style>
5:表单隐藏与表单显示
影响css布局
style="visibility:hidden" 隐藏
style="visibility:display" 显示
style="visibility:display" 显示
不影响css布局
style="display:none" 隐藏
style="display:''" 显示
style="display:''" 显示
6:让div在同一行
第一个div(左对齐,占60%,中部居中)
style="margin-left: left; margin-right: auto; width: 60%;float:left; display:inline;"
第二个div(右对齐,占40%,中部居中)
style="margin-left: auto; margin-right: right; width: 40%; float: left; display: inline;"
相关推荐
qiupu 2020-11-04
多读书读好书 2020-11-03
RedCode 2020-10-28
jiedinghui 2020-10-25
Ladyseven 2020-10-22
hellowzm 2020-10-12
zuncle 2020-09-28
Ladyseven 2020-09-11
jiedinghui 2020-09-07
xiaohuli 2020-09-02
葉無聞 2020-09-01
impress 2020-08-26
ThikHome 2020-08-24
nicepainkiller 2020-08-20
hellowzm 2020-08-18