Javascript 单选按钮赢得';不能以html格式显示
我不熟悉html和css。我计划用html和css创建一个注册表单。但是,在浏览器中运行html文件时,该单选按钮不显示。我不知道哪一部分出了问题。请帮忙! 这是我的html文件Javascript 单选按钮赢得';不能以html格式显示,javascript,html,css,radio-button,Javascript,Html,Css,Radio Button,我不熟悉html和css。我计划用html和css创建一个注册表单。但是,在浏览器中运行html文件时,该单选按钮不显示。我不知道哪一部分出了问题。请帮忙! 这是我的html文件 <!DOCTYPE html> <html> <style> input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-ap
<!DOCTYPE html>
<html>
<style>
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
</style>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/ionic.min.css" />
<title>Create an Account</title>
</head>
<body>
<div class="bar bar-header">
<h1 class="title">Create an Account</h1>
<a href="login.html" class="button button-clear button-royal">Login</a>
</div>
<div class="padding" style="margin-top:75px;">
<label class="item-input">
<span class="input-label">Full Name</span>
<input type="text" placeholder="" id="fullname">
</label>
<label class="item-input">
<span class="input-label">Username</span>
<input type="text" placeholder="" id="username">
</label>
<label class="item-input">
<span class="input-label">Email</span>
<input type="email" placeholder="" id="email">
</label>
<label class="item-input">
<span class="input-label">Password</span>
<input type="password" placeholder="" id="password">
</label>
<label class="item-input">
<span class="input-label">Contact</span>
<input type="number" placeholder="" id="contact">
</label>
<label class="item-input">
<span class="input-label">Gender</span>
<p>
<input name="gender" type="radio" id="male" value="male" />
<label for="male">Male</label>
<input name="gender" type="radio" id="female" value="female" />
<label for="female">Female</label>
</p>
</label>
<label class="item-input">
<button class="button button-block button-positive" id="signup">Create an Account</button>
</label>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/jq.js"></script>
<script type="text/javascript" src="js/auth.js"></script>
</body>
</html>
如果单选按钮可见,则尝试将CSS内联样式标记放入案例中可能存在的加载CSS文件问题如果单选按钮可见,则尝试将CSS内联样式标记放入案例中可能存在的加载CSS文件问题更改-webkit外观:无;在css文件中-webkit外观:正常;用于项目输入 更改-webkit外观:无;在css文件中-webkit外观:正常;用于项目输入 我可以得到单选按钮,你使用的是哪种浏览器?谷歌浏览器,你是说你使用我的代码,单选按钮就会显示出来吗?是的,我使用了你的代码和图标css,并且可以显示单选按钮。我签入了firefox和chrome,它工作正常。是的,internet explorer也会显示按钮,只是chrome无法工作。你知道这件事吗?谢谢你能为那个单选按钮编写一个类并设置它的样式吗?检查它是否工作,或者在开发者工具中检查单选按钮是否存在。我能得到单选按钮,你使用的是哪个浏览器?谷歌浏览器,你的意思是你使用我的代码并显示单选按钮吗?是的,我将你的代码与标志性的css一起使用,并且能够显示单选按钮。我同时登录了firefox和chrome,它工作正常。是的,internet explorer也会显示按钮,只是chrome无法工作。你知道这件事吗?谢谢你能为这个单选按钮编写一个类并设置它的样式吗?检查它是否工作,或者在开发工具中检查单选按钮是否存在。其他样式和字体工作,只有单选按钮不显示其他样式和字体工作,只有单选按钮不显示
.item-input input {
-webkit-border-radius: 0;
border-radius: 0;
-webkit-box-flex: 1;
-webkit-flex: 1 220px;
-moz-box-flex: 1;
-moz-flex: 1 220px;
-ms-flex: 1 220px;
flex: 1 220px;
-webkit-appearance: normal;
-moz-appearance: none;
appearance: none;
margin: 0;
padding-right: 24px;
background-color: transparent
}
.item-radio .item-content {
position: relative;
z-index: 2;
padding: 16px 49px 16px 16px;
border: none;
background-color: #fff
}
input[type=radio],
input[type=checkbox] {
margin: 0;
line-height: normal
}
.item-input input[type=radio],
input[type=radio][disabled],
input[type=radio][readonly],
input[type=checkbox][disabled],
input[type=checkbox][readonly] {
background-color: transparent
}
.item-radio {
padding: 0
}
.item-radio:hover {
cursor: pointer
}
.item-radio .item-content {
padding-right: 64px
}
.item-radio .radio-icon {
position: absolute;
top: 0;
right: 0;
z-index: 3;
visibility: hidden;
padding: 14px;
height: 100%;
font-size: 24px
}
.item-radio input {
position: absolute;
left: -9999px
}
.item-radio input:checked~.item-content {
background: #f7f7f7
}
.item-radio input:checked~.radio-icon {
visibility: visible
}
.platform-android.grade-b .item-radio,
.platform-android.grade-c .item-radio {
-webkit-animation: androidCheckedbugfix infinite 1s
}