IE中的Nivo滑块显示问题(Nivo Slider Display Problem in IE)
我使用的是Nivo Slider,并且遇到了“堆叠”问题 - 所有图像最初都是相互重叠的。 我已经尝试了解决http://nivo.dev7studios.com/support/上所述的这个问题的解决方法,但这会导致图像在IE中完全不显示。 我也尝试了在style标签中包含“display:none”的解决方法,但是这在IE中具有相同的效果。 您可以在http://www.rooftopdrinker.com上查看目前没有解决方法的代码。 任何意见,将不胜感激。
I am using Nivo Slider, and am experiencing the "stacking" problem -- with all of the images initially loading on top of each other. I have tried the workaround for this problem described at http://nivo.dev7studios.com/support/ but this results in the images not displaying at all in IE. I have also tried the workaround of including "display:none" in the style tag but this has the same effect in IE. You can see the code, currently without the workaround, at http://www.rooftopdrinker.com. Any advice would be appreciated.
原文:https://stackoverflow.com/questions/6515365
最满意答案
UTL_MATCH包含匹配字符串和比较其相似性的方法。 编辑距离也称为Levenshtein距离,可能是一个很好的开始。 由于一个字符串是一个子字符串,它可能有助于比较相对于字符串大小的编辑距离。
--Addresses that are most similar to each substring. select substring, address, edit_ratio from ( --Rank edit ratios. select substring, address, edit_ratio ,dense_rank() over (partition by substring order by edit_ratio desc) edit_ratio_rank from ( --Calculate edit ratio - edit distance relative to string sizes. select substring, address, (length(address) - UTL_MATCH.EDIT_DISTANCE(substring, address))/length(substring) edit_ratio from ( --Fake addreses (from http://names.igopaygo.com/street/north_american_address) select '526 Burning Hill Big Beaver District of Columbia 20041' address from dual union all select '5206 Hidden Rise Whitebead Michigan 48426' address from dual union all select '2714 Noble Drive Milk River Michigan 48770' address from dual union all select '8325 Grand Wagon Private Sleeping Buffalo Arkansas 72265' address from dual union all select '968 Iron Corner Wacker Arkansas 72793' address from dual ) addresses cross join ( --Address substrings. select 'Michigan' substring from dual union all select 'Not-So-Hidden Rise' substring from dual union all select '123 Fake Street' substring from dual ) order by substring, edit_ratio desc ) ) where edit_ratio_rank = 1 order by substring, address;
这些结果并不是很好,但希望这至少是一个很好的起点。 它应该适用于任何语言。 但是您仍然可能想要将其与某些语言或特定于语言环境的比较规则结合使用。
SUBSTRING ADDRESS EDIT_RATIO --------- ------- ---------- 123 Fake Street 526 Burning Hill Big Beaver District of Columbia 20041 0.5333 Michigan 2714 Noble Drive Milk River Michigan 48770 1 Michigan 5206 Hidden Rise Whitebead Michigan 48426 1 Not-So-Hidden Rise 5206 Hidden Rise Whitebead Michigan 48426 0.5
UTL_MATCH contains methods for matching strings and comparing their similarity. The edit distance, also known as the Levenshtein Distance, might be a good place to start. Since one string is a substring it may help to compare the edit distance relative to the size of the strings.
--Addresses that are most similar to each substring. select substring, address, edit_ratio from ( --Rank edit ratios. select substring, address, edit_ratio ,dense_rank() over (partition by substring order by edit_ratio desc) edit_ratio_rank from ( --Calculate edit ratio - edit distance relative to string sizes. select substring, address, (length(address) - UTL_MATCH.EDIT_DISTANCE(substring, address))/length(substring) edit_ratio from ( --Fake addreses (from http://names.igopaygo.com/street/north_american_address) select '526 Burning Hill Big Beaver District of Columbia 20041' address from dual union all select '5206 Hidden Rise Whitebead Michigan 48426' address from dual union all select '2714 Noble Drive Milk River Michigan 48770' address from dual union all select '8325 Grand Wagon Private Sleeping Buffalo Arkansas 72265' address from dual union all select '968 Iron Corner Wacker Arkansas 72793' address from dual ) addresses cross join ( --Address substrings. select 'Michigan' substring from dual union all select 'Not-So-Hidden Rise' substring from dual union all select '123 Fake Street' substring from dual ) order by substring, edit_ratio desc ) ) where edit_ratio_rank = 1 order by substring, address;
These results are not great but hopefully this is at least a good starting point. It should work with any language. But you'll still probably want to combine this with some language- or locale- specific comparison rules.
SUBSTRING ADDRESS EDIT_RATIO --------- ------- ---------- 123 Fake Street 526 Burning Hill Big Beaver District of Columbia 20041 0.5333 Michigan 2714 Noble Drive Milk River Michigan 48770 1 Michigan 5206 Hidden Rise Whitebead Michigan 48426 1 Not-So-Hidden Rise 5206 Hidden Rise Whitebead Michigan 48426 0.5
相关问答
更多-
Oracle中的模糊文本搜索(Fuzzy text searching in Oracle)[2022-11-17]
UTL_MATCH包含匹配字符串和比较其相似性的方法。 编辑距离也称为Levenshtein距离,可能是一个很好的开始。 由于一个字符串是一个子字符串,它可能有助于比较相对于字符串大小的编辑距离。 --Addresses that are most similar to each substring. select substring, address, edit_ratio from ( --Rank edit ratios. select substring, address, edit ... -
你的假设可能是正确的。 在全文搜索中,术语是“停用词”。 如果您没有定义自己的停止列表,则使用默认值: CTXSYS.DEFAULT_STOPLIST 。 有关默认的英语停止列表,请参阅此文章。 'in'这个词就在其中。 您可以使用CTX_DDL包删除停用词或创建自己的停止列表,特别是CTX_DDL.REMOVE_STOPWORD或CTX_DDL.CREATE_STOPLIST 。 Your assumption is probably right. In full text search the term ...
-
文本环绕在oracle中(Text wrapping in oracle)[2022-10-29]
select regexp_replace(column_name, '(.{40})', '\1' || chr(10) || chr(13)) from some_table; select regexp_replace(column_name, '(.{40})', '\1' || chr(10) || chr(13)) from some_table; -
我会使用oracle UTL_FILE包来读取文件并解析出检查重复项所需的数据。 看起来你只需要阅读前两行。 该文件必须存在于DB可访问的路径上,并且DBA必须在ACL中设置访问权限。 I would use the oracle UTL_FILE package to read the file and parse out the data you need to check for duplicates. It appears you'd only need to read the first two ...
-
只要有条件地添加谓词: var users = from u in context.TPM_USER select u; if (!string.IsNullOrWhiteSpace(FirstName)) users = users.Where(u => u.FIRSTNAME.ToLower().Contains(FirstName.ToLower())); if (!string.IsNullOrWhiteSpace(LastName)) users = users.Where(u = ...
-
经典报告使用页面项目值在oracle apex中搜索(classic report searching in oracle apex using page item values)[2023-03-26]
你不需要连接 - 这会搞砸你 所以 和(城市LIKE'%'||:P46_CITY ||'%'或:P46_CITY为空) 变 和(城市LIKE'%:P46_CITY%'或:P46_CITY为空) you don't need the concatenation - that's screwing you up SO and (city LIKE '%'||:P46_CITY||'%' OR :P46_CITY IS NULL) becomes and (city LIKE '%:P46_CITY%' OR : ... -
除了这两个模糊匹配函数外,还有一些语音匹配函数。 看到这些: https://www.ibm.com/support/knowledgecenter/SSULQD_7.2.1/com.ibm.nz.dbu.doc/r_dbuser_functions_expressions_phonetic_funcs.html 我希望在你的情况下有所帮助:) Apart from Those two fuzzy matching functions, there are a couple of phonetic matc ...
-
全文搜索(FTS)是您所需的数据库功能的术语。 有: 本机MySQL支持(要求表为MyISAM) WHERE MATCH(column) AGAINST('Rose', 'Crown') 狮身人面像(第三方) Lucene / SOLR(第三方) Full Text Search (FTS) is the terminology for the database functionality you desire. There's: Native MySQL support (requi ...
-
在php中模糊搜索数组(fuzzy searching an array in php)[2022-08-07]
看看Levenshtein的功能 基本上,它为您提供了字符串之间的差异(就成本而言)。 即将字符串A转换为字符串B的成本是多少。 为自己设定一个阈值levenshein距离,两个词之下的任何东西都意味着它们是相似的。 Bitap算法也更快,因为它可以通过按位运算符实现,但我相信你必须自己实现它,除非在某个地方有一个PHP库。 编辑使用levenshtein方法: 搜索字符串是“maptop”,您将“成本阈值”设置为2.这意味着您希望任何两个字符串转换操作的单词远离搜索字符串。 所以你循环遍历你的数组“A”字 ... -
搜索Oracle分区(Searching over Oracle partitions)[2021-02-14]
这取决于。 如果WHERE子句不基于任何索引列,则查询将非常慢,因为Oracle必须执行全表扫描。 如果在WHERE子句中对列具有全局定义的索引,则无论是仅访问一个分区还是全部分区都无关紧要。 但是,当您的表具有WHERE子句使用的许多分区和本地定义的索引时,会出现性能下降。 假设您的表有50个分区,并且本地定义了索引,那么未指定分区的查询(通过WHERE条件或通过分区名称显式)必须同样扫描50个单独的索引。 It depends. If your WHERE clause is not based on ...