2012-02-18 19 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)上工作:只要單擊或以其他方式聚焦文本字段,佔位符文本就會消失。你正在使用哪種瀏覽器? – 2012-02-18 12:46:08

回答

2

我使用的是Chrome瀏覽器,點擊後文本不會消失。寫入它後消失。當你刪除輸入時,佔位符再次出現。

相關問題