作者热门文章
- objective-c - iOS 5 : Can you override UIAppearance customisations in specific classes?
- iphone - 如何将 CGFontRef 转换为 UIFont?
- ios - 以编程方式关闭标记的信息窗口 google maps iOS
- ios - Xcode 5 - 尝试验证存档时出现 "No application records were found"
我正在尝试通过下面的这种方式为输入提供粗体字体,但它不起作用..
<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>
最佳答案
你的 <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>
编辑: 为了让评论者满意:只使用标准双引号,不要像在 <style>
中那样使用特殊的弯引号标签。
关于css - 只是想给输入文本加粗字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5408292/
使用登录后,我想吐出用户名。 但是,当我尝试单击登录按钮时, 它给了我力量。 我看着logcat,但是什么也没显示。 这种编码是在说。 它将根据我在登录屏幕中输入的名称来烘烤用户名。 不会有任何密码。
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎是题外话,因为它缺乏足够的信息来诊断问题。 更详细地描述您的问题或include a min
我是一名优秀的程序员,十分优秀!