惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 【当耐特】
S
Schneier on Security
Blog — PlanetScale
Blog — PlanetScale
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
The GitHub Blog
The GitHub Blog
腾讯CDC
A
About on SuperTechFans
H
Help Net Security
The Register - Security
The Register - Security
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Vercel News
Vercel News
V
Visual Studio Blog
T
Tailwind CSS Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - Franky
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
D
DataBreaches.Net
I
InfoQ
L
Lohrmann on Cybersecurity
M
MIT News - Artificial intelligence
I
Intezer
博客园 - 聂微东
Webroot Blog
Webroot Blog
宝玉的分享
宝玉的分享
Scott Helme
Scott Helme
Microsoft Security Blog
Microsoft Security Blog
SecWiki News
SecWiki News
Hacker News: Ask HN
Hacker News: Ask HN
T
Troy Hunt's Blog
S
Security @ Cisco Blogs
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
N
Netflix TechBlog - Medium
小众软件
小众软件
The Cloudflare Blog
WordPress大学
WordPress大学
N
News | PayPal Newsroom
C
Check Point Blog
Google Online Security Blog
Google Online Security Blog
月光博客
月光博客
C
Cisco Blogs
阮一峰的网络日志
阮一峰的网络日志
W
WeLiveSecurity
Schneier on Security
Schneier on Security

博客园 - talantlee

C# Windows Form 下通过MethodInvoker 实现异步调用 (不使用thread) Web导出Excel时"0"自动消失的解决方案 - talantlee - 博客园 Sql Server 2005 新的分页存储过程的推荐写法 .NET 编译时出现LC.exe错误解决方法 C#中通过代码控制IIS服务重启 - talantlee - 博客园 Web所有父窗体与子窗体的交互方法列举(子调用父窗体函数) Javascrip的給人忽略掉的循環寫法(FOR IN) CSS 一些语法规范以及写法(不涉及語法) 学习.NET技術的一些网站推荐 javascript 中面向對象編程 (類的繼承) (小技巧九) 【摘錄】Xml讀寫示例~ javascript MailTo 郵件技巧(小技巧八) - talantlee SQl2000數據同步技術入門級(DTS,Replication) javascript IE与FireFox 一些兼容写法 (小技巧七) javascript 彈出式窗體詳解 (小技巧六) 【文摘】让你受益匪浅的IT培训语录 javascript 中面向對象編程 (類的構造) (小技巧五) 【文摘】设计模式:Model View Presenter 《文摘》伟大架构师的秘密
如何令web中的Select中实现Combox效果 - talantlee - 博客园
talantlee · 2010-04-03 · via 博客园 - talantlee

用一个Input框+一个Select框实现。
直接把下面的代码copy到你的web层看效果。

<span style="WIDTH: 48px; POSITION: relative">
               <SELECT onChange="comboChange(this)" style="MARGIN-TOP: 1px; FONT-WEIGHT: bold; LEFT: 0px; VISIBILITY: visible; OVERFLOW: hidden; WIDTH: 98%; CLIP: rect(auto auto auto 29px); POSITION: absolute; TOP: 0px; HEIGHT: 20px"  size="1" Columns="12"> <option value="160" > 160 </option>  </SELECT>
  <input type="text" name="txtheaderwidth"  onpaste="return false;" onKeyPress="return myKeyPress();"  maxlength="3" style="FONT-WEIGHT: bold; Z-INDEX: 200; LEFT: 0px; VISIBILITY: visible; WIDTH: 31px; POSITION: relative; TOP: 0px; HEIGHT: 20px">
          </span>

 function comboChange(obj)
 {
  obj.parentNode.childNodes[2].value=obj.value;//将Select框选中的值赋予Input框。
 }