2011-03-23 46 views
5

我想給一個大膽的字體下面這樣的輸入,但它不工作..只是舉了一個大膽的字體輸入文本

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

回答

6

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

編輯:爲了滿足評議:僅使用標準的雙引號,沒有捲曲y您的<style>標籤中包含特殊引號。

+0

謝謝,但它不工作.. – ziiweb 2011-03-23 16:19:50

+2

@ user248959,嘗試更新的代碼。你在'