2012-02-18 8 views
1
次の例では

テキストフィールド内のテキストがクリックで消えないのはなぜですか?

http://twitter.github.com/bootstrap/base-css.html#forms

私は

<!DOCTYPE html> 

<html lang="en">  
<head> 
    <meta charset="utf-8">  
    <title></title>  
    <meta name="viewport" content="width=device-width, initial-scale=1.0">  
    <meta name="description" content="">  
    <meta name="author" content="">  
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>  
    <link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet">  
    <link href="http://twitter.github.com/bootstrap/assets/css/docs.css" rel="stylesheet">  
</head>  
<body>  
<input type="text" class="span3" placeholder="Type something…"> <span class="help-inline">Associated help text!</span>the 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> 

<script src="http://twitter.github.com/bootstrap/1.4.0/bootstrap-modal.js"></script> 

</body> 

</html> 
以下の私のほとんど同一のコードが含まれているテキスト「タイプの何か...」をクリック

により消失してテキストフィールドがあります

誰かが私のテキストがクリックすると消えない理由を教えてもらえますか?

+0

ブラウザ(Safari、Chrome、Firefox)で動作しますか:テキストフィールドをクリックするなどの方法でプレースホルダテキストが消えるとすぐに消えます。どのブラウザを使用していますか? –

答えて

2

私はChromeを使用していますが、クリックするとテキストが消えません。それはそれに書き込まれた後に消えます。入力を削除すると、プレースホルダが再度表示されます。

関連する問題