zii*_*web 7 css input stylesheet
我试图在下面这样的方式给输入加粗字体,但它不起作用..
<html>
<head>
</head>
<body>
<style type=”text/css”>
.jander2{
font-weight: bold;
}
</style>
<form method="post" action="somepage">
<input id="jander" class="jander2">
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
Cze*_*ogy 12
你<style>应该在以下<head>部分:
<html>
<head>
<style type="text/css">
.jander2{
font-weight: bold;
}
</style>
</head>
<body>
<form method="post" action="somepage">
<input id="jander" class="jander2">
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
编辑: 满足评论者:只使用标准双引号,没有像<style>标签中那样的特殊引号.