Javascript 无序的网页样式
很长一段时间以来,我一直在尝试使用这个html页面的格式。我想以一种漂亮的方式在屏幕中央看到这些页面。任何帮助都将不胜感激 我的代码是 css html 该页面应为Javascript 无序的网页样式,javascript,html,css,Javascript,Html,Css,很长一段时间以来,我一直在尝试使用这个html页面的格式。我想以一种漂亮的方式在屏幕中央看到这些页面。任何帮助都将不胜感激 我的代码是 css html 该页面应为 有两种方法可以使我的头顶居中。首先,固定宽度并设置边距:0自动;在要居中的元素上。第二个是放置位置:相对;左:计算(50%-元素宽度) 使用标记 模型 平均值 总数 最高 不清楚您想要什么。请做一些涂鸦,分享一张你想要的图片。在你的CSS中多声明div样式trouble@scoolinico那么我应该删除一个吗div@scoo
有两种方法可以使我的头顶居中。首先,固定宽度并设置边距:0自动;在要居中的元素上。第二个是放置位置:相对;左:计算(50%-元素宽度) 使用
标记
模型
平均值
总数
最高
不清楚您想要什么。请做一些涂鸦,分享一张你想要的图片。在你的CSS中多声明div样式trouble@scoolinico那么我应该删除一个吗div@scoolnico现在模型和输入选项卡与这个布局合并,并在功能上进行调整:我的意思是提到这个问题
* {
margin:0;
padding:0;
font-family: tahoma;
}
body {
padding: 30px;
}
#fileid{
width:10%;
height:15%;
}
div {
width: 400px;
height: 25px;
background-color: white;
box-shadow: 1px 2px 3px #ededed;
position:relative;
border: 1px solid #d8d8d8;
}
input[type='file'] {
width:400px;
height:25px;
opacity:0
}
#val {
width: 400px;
height:25px;
position: absolute;
top: 0;
left: 0;
font-size:13px;
line-height: 25px;
text-indent: 10px;
pointer-events: none;
}
#button {
cursor: pointer;
display: block;
width: 90px;
background-color: purple;
height:25px;
color: white;
position: absolute;
right:0;
top: 0;
font-size: 11px;
line-height:25px;
text-align: center;
-webkit-transition: 500ms all;
-moz-transition: 500ms all;
transition: 500ms all;
}
#button:hover {
background-color: blue;
}
body {
background-color: linen;
}
div{
color: maroon;
margin-left: 40px;
font-size:100%;
}
#sid{
color: maroon;
margin-left: 40px;
font-size:100%;
}
<div align="center">
<b>Model</b><select id="sid">
<option >Average</option>
<option>Sum</option>
<option>Highest</option>
</select><br>
<div id="fileip">
<input type='file'> <span id='val'></span>
<span id='button'>Select File</span>
</input>
</div>
<input type="submit" value="run"><br><br>
<input type="submit" value="Display"><br>
</div>
$('#button').click(function () {
$("input[type='file']").trigger('click');
})
$("input[type='file']").change(function () {
$('#val').text(this.value.replace(/C:\\fakepath\\/i, ''))
})