我在TSQL中有一个包含十六进制列的数据库.但是,这些值用零填充以填充列.
我需要删除这些零,因此我有十六进制字符串.问题是我不能只删除一对零,因为字符串可能在中间有零.
我有一种感觉,我需要将其转换为十进制,然后返回或其他东西,但我尝试的一切产生奇怪的结果.
数据库中的列如下所示:
1EBC67E6000000
6B1FE9C7830000
C700DBBF000000
Run Code Online (Sandbox Code Playgroud)
这些值是不同的长度,并且全部用零对填充.
任何想法都会好!
我想在没有悬停的情况下在圆圈中显示一个徽标(例如.item-logo),因为悬停在容器中会显示日期.
HTML
<div id="main-content" class="container animated"> <div id="content">
<article class="post-65 post type-post status-publish format-standard hentry category-thoughts tag-example tag-standard tag-tag item-list">
<div class="post-format-icon">
<a href="<?php echo get_permalink(); ?>" class="item-date"><span><?php the_time('j') ?></span><small><?php the_time('M') ?></small></a>
</div>
Run Code Online (Sandbox Code Playgroud)
你可以在这里看看JS Fiddle,日期不被视为它的PHP.话虽如此,徽标应该改变为悬停的日期.http://jsfiddle.net/xJv5x/
谢谢!