只是尝试为输入文本提供粗体字体

2024-01-23

我试图用下面的方式为输入提供粗体字体,但它不起作用。

<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>

Your <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>

EDIT: 为了让评论者满意:仅使用标准双引号,不要像您在中那样使用卷曲特殊引号<style> tag.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

只是尝试为输入文本提供粗体字体 的相关文章