我在我的項目中使用鉻瀏覽器和我的網址的文本字段,它不顯示閃爍的光標。我試圖加載google.com,它的工作。我想通過谷歌使用div的形式自己的光標。但無法複製他們的解決方案。如果任何人都可以提供幫助,那就太棒了。如何使用div實現光標功能與谷歌
謝謝。
<div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: rgb(0, 0, 0); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; position: absolute; top: 1px; z-index: 4; white-space: pre; width: 1px; height: 20px; background-color: rgb(0, 0, 0); left: 3px; display: none; background-position: initial initial; background-repeat: initial initial; "></div>
你在說「contenteditable」嗎?如果你可以發佈谷歌的代碼,這將是有益的。我不確定你在說什麼。 http://jsfiddle.net/Lp2d3/ – mrtsherman 2012-02-09 05:45:06
如果你在mozilla中加載google.com並使用螢火蟲附加組件,你會發現谷歌使用尺寸div:1px(width)20px(height)作爲閃爍光標。 – Raj 2012-02-09 05:57:24
我看不到這樣的事情。經過測試的chrome,ff7和ff10。他們使用輸入字段。 – mrtsherman 2012-02-09 06:22:50