六、文件选择
文件选择包括两种,一种是通过html5拖拽、还有就是通过Input(File)选取。
文件选择范例:
<body>
<style>
.file_select_example.hovering {
-webkit-box-shadow: inset 0px 0px 50px #BBB;
-moz-box-shadow: inset 0px 0px 50px #BBB;
-o-box-shadow: inset 0px 0px 50px #BBB;
box-shadow: inset 0px 0px 50px #BBB;
}
.file_select_example {
width: 560px;
height: 120px;
border: 1px solid #BBB;
background: white url("css/img/back_image_1.png");
position:relative;
align-content:center;
text-align: center;
font-size: 20pt;
}
.word_area {
border: 2px dashed #BBB;
text-align: center;
font-size: 20pt;
color: #BBB;
border-radius: 5px;
float:left;
position:absolute;
margin:10px;
width: 536px;
height: 96px;
top:0px;
left:0px;
line-height:80