一个好看的Input样式

Posted 绵山

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了一个好看的Input样式相关的知识,希望对你有一定的参考价值。

<div class="search">
<input type="text">
</div>

.search{
text-align: center;
}
.search input{
margin: 0 auto;
padding: 0 10px;
width: 536px;
height: 34px;
border: 1px solid rgba(255,255,255,.8);
border-radius: 2px;
color: #fff;
background: rgba(0,0,0,.15);
  //font-family: "helvetica neue",arial,sans-serif;
}

fullPage插件使用:
head引入css文件
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.8.8/jquery.fullPage.css">

在body最后引入cdn
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.8.8/vendors/jquery.easings.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.8.8/jquery.fullPage.js"></script>
<div id="fullpage">
<div class="section">
<div>
<div class="search">
<input type="text">
</div>
</div>
</div>
<div class="section">第二页</div>
<div class="section">第三页</div>
<div class="section">第四页</div>
</div>
$(document).ready(function(){
$(‘#fullpage‘).fullpage({
sectionsColor:[‘green‘,‘blue‘,‘gray‘,‘yellow‘],
controlArrows:false,
scrollingSpeed:2000,
anchors:[‘page1‘,‘page2‘,‘page3‘,‘page4‘],
loopTop:true,
loopBottom:true,
loopHorizontal:false,
scrollBar:true,
continuousVertical:true,
menu:‘#menu‘,
navigation:true,
navigationTooltips:[‘aaa‘,‘bbb‘,‘ccc‘,‘ddd‘],

});
})


以上是关于一个好看的Input样式的主要内容,如果未能解决你的问题,请参考以下文章

自定义checkbox样式

自定义input[type="file"]的样式

自定义input[type="file"]的样式

自定义input[type="radio"]的样式

自定义input[type="radio"]的样式

HTML input type=file文件选择表单的汇总