i am tried to user form details i have Text-Fields create like this
<div data-role="fieldcontain" class="name">
<label for="email"> <font color="white">No of lights</font> </label>
<input class="one" type="text" style="background-color:#686868" name="Name" />
</div>
it showing like this
but i want like this
so I can applied like
.one{
border-left:none;
border-top:none;
border-right:none;
}
but it's not works my Code is
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
</head>
<style>
.one{
border-left:none;
border-top:none;
border-right:none;
}
#pageone{
background-color:#666666;
}
</style>
<body>
<div data-role="page" id="pageone" data-theme="a" >
<div data-role="fieldcontain" class="name">
<label for="email"> <font color="white">No of lights</font> </label>
<input class="one" type="text" style="background-color:#686868" name="Name" />
</div>
</div>
</body>
</html>
Please give me any Idea about how to remove Text-Field Borders And Please Tell me What are changes in our code
input.one{
background-color: transparent;
border-style: solid;
border-width: 0px 0px 1px 0px;
border-color: white;
}
input{
border: none;
border-bottom: 2px solid white;
outline: none;
}
Add outline so that when the textbox is selected, the outline border does not gets visible.
In phonegap input tag is enclosed in div tag. for example:
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset">
<input name="phone" id="phone" placeholder="" type="text">
</div>
So you can change the classes "ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset" and can remove the border.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.