contenteditable可编辑元素或div如何设置占位符placeholder?
placeholder好像只有form元素才能用,那么div设为contenteditable怎么设置placeholder
?
网友回复
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> [contenteditable=true]:empty:before { content: attr(placeholder); pointer-events: none; display: block; /* For Firefox */ } /* */ div[contenteditable=true] { border: 1px dashed #AAA; width: 290px; padding: 5px; } pre { background: #EEE; ...
点击查看剩余70%
国内如何正常调用gemini的api接口?
Google AI Studio的google-genai如何设置baseurl地址?
cloudflare的ai gateway如何接入gemini api实现国内访问?
如何写一个python代码的coze插件实现图片合成mp4视频?
ai翻唱模仿一首歌生成的歌曲需要交版权费给原歌曲版权方吗?
视频编码 HEVC、AVC 和 AV1有啥不同?
coze的http长连接调用第三方api如何实现耗时异步通知?
openrouter如何免费使用大gemini及deepseek大模型api?
coze的speech_synthesis文字转语音配音插件的所有的voice_id列表怎么获取?
Gemini 2.5 Pro Preview 05-06与claude 3.7谁的ui截图转代码功能更强?