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

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - Jeff.Yang

关于Cache 不同数据库系统NULL判断的一点细节 关于 SQL CLR 几点细节 关于TextBox的ReadOnly - Jeff.Yang - 博客园 Repeater中FooterTemplate中的控件提取 控件存在检测 SQL Server 2000与IIS6 ASP.NET Profile之惑 ASP.NET 2.0的URL摘取 VS2005和.NET 2.0真搞 MySQL远程管理 SQL Server 异机迁移 Oracle时间处理 命名颜色可能不唯一 SQL Server 2005 版本号 IE默认设置 Safe360 BUG TP-Link TL-WN620G无线网卡的WPA2协议支持 MySQL 数据迁移
SkipLinkText会惹祸 - Jeff.Yang - 博客园
Jeff.Yang · 2007-12-23 · via 博客园 - Jeff.Yang

将ASP:Menu控件放到Table中,一级Menu是张图片,二级Menu动态弹出。

功能一切正常,但图片上方总是多出一条1px的白线,页面整体风格被破坏。
查看源代码,并没有任何border、padding、margin之类的设置,class中也没有。

用style="position:relative; top:-1px;"倒可补救,但这张图片却浮起来了,不再随滚动条滚动。这个style放到ASP:menu或者放到其外的TD,或者在ASP:Menu的MenuItemDataBound事件,抓住这个一级菜单(图片),对其应用style,也不行。

多次观察看到下面的代码:

<href="#MainHeader_AdminMenu_SkipLink"><img alt="跳过导航链接" src="/WebResource.axd?d=7vUqaHIXL3alXSeUiWWmqQ2&amp;t=633312450109244000" width="0" height="0" style="border-width:0px;" /></a>

但并未在意,因为很明显,它不占用空间,这段代码与后续代码之间也没有任何空格。

实在查不出原因,死马当活马医吧,设置ASP:Menu的属性

 SkipLinkText=""

没想到真解决了。

上面那段代码不再生成,白线没有了,页面的整体设置恢复了。

关于这个SkipLinkText更多的东西,我随手Google到一篇:
ASP_NET 中的辅助功能支持

园子里搜一下也看到另一个问题:
http://www.cnblogs.com/BillChen/archive/2006/07/31/464191.html