小编Jur*_*ocs的帖子

<strong> </ strong>在桌子内不起作用?

我有一个问题strong,表格内的标签没有加粗.我有以下HTML代码:

在这里,我有一个小提琴:http://jsfiddle.net/JxQCr/

<table>
    <tbody>
        <tr class="row_table">
            <td>2012</td>
            <td><strong>this should be strong</strong></td>
        </tr>
        <tr>
            <td>2012</td>
            <td>not strong</td>
        </tr>
        <tr>
            <td>-</td>
            <td>not strong</td>
        </tr>
    </tbody>
</table>
Run Code Online (Sandbox Code Playgroud)

html css html-table

4
推荐指数
1
解决办法
3493
查看次数

如何反转highcharts中的条形图?

那里有一些高级专业人士吗?

我想要的是,值6(最低分)从左边开始,在右边有最高分(1)

所以条形标题为1(显示空格为标记1)

喜欢:

|------------------------(1.9)

|--------------------(2.3)

|----------------------------(1.4)

6..............3................1
Run Code Online (Sandbox Code Playgroud)

http://jsfiddle.net/aCz2s/1/

对此有何帮助?

highcharts

4
推荐指数
1
解决办法
8076
查看次数

使用 css 样式化活动锚元素

我很难找到一个 css 解决方案来让一个活动锚着色......

为什么活跃的锚点不是红色的,所以如果点击“momo”momo 会保持红色?或者是 active 错误的伪类?

<!doctype html>
<html lang="en">

    <head>
        <meta charset="utf-8" />
        <title>test</title>
    <style type="text/css">
        a:active{
        color:red;
        }
        a:hover{
        color:yellow;
        }
        </style>
    </head>

    <body>
    <ul> Navigation
    <li class="subli"><a href="#momo">momo</a></li>
    <li class="subli"><a href="#ipsi">ipsi</a></li>
    </ul>
    </body>

</html> 
Run Code Online (Sandbox Code Playgroud)

谢谢朱鲁

html css

3
推荐指数
2
解决办法
9400
查看次数

Codeigniter Where子句

不知何故,我有点难以构建这样的查询:给我链接名称不为null的所有导航条目

$query = $this->db->get_where('navigation',array('linkname'!==NULL));
Run Code Online (Sandbox Code Playgroud)

给我错误

'where子句'中的未知列'0'

SELECT linkname,idnavigationFROM(navigation)WHERE 0= 1

这有什么提示吗?

codeigniter

3
推荐指数
1
解决办法
1万
查看次数

如何在没有换行/换行/换行的情况下将100个div放在一起?

是否有一些css声明将有限数量的div彼此相邻放在右边,而没有制作"linebreak/newline/wrap"并且有一个定义宽度的包装器?

就像在一条线上放置100个宽度为200px,高度为60px的div而没有固定宽度的包装容器?

html css

3
推荐指数
1
解决办法
1766
查看次数

ExpatError:文档元素之后的垃圾

我真的不知道,问题是什么?我收到以下错误:

File "C:\Python27\lib\xml\dom\expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
ExpatError: junk after document element: line 5, column 0
Run Code Online (Sandbox Code Playgroud)

我不见JUNK!有帮助吗?我疯了......

text = """<questionaire>
<question>
    <questiontext>Question1</questiontext>
    <answer>Your Answer: 99</answer>
</question>
<question>
    <questiontext>Question2</questiontext>
    <answer>Your Answer: 64</answer>
</question>
<question>
    <questiontext>Question3</questiontext>
    <answer>Your Answer: 46</answer>
</question>
<question>
    <questiontext>Bitte geben</questiontext>
    <answer>Your Answer: 544</answer>
    <answer>Your Answer: 943</answer>
</question>
</questionaire>"""

cleandata = text.split('<questionaire>')
cleandatastring= "".join(cleandata)
stripped = cleandatastring.strip()
planhtml = stripped.split('</questionaire>')[0]
clean= planhtml.strip()


from xml.dom import minidom

doc = minidom.parseString(clean)
for question in doc.getElementsByTagName('question'):
    for answer in question.getElementsByTagName('answer'):
        if …
Run Code Online (Sandbox Code Playgroud)

python html-parsing minidom

2
推荐指数
1
解决办法
9842
查看次数

Python基础知识:如何在方程式中设置两个函数参数?

我有一个关于python函数和参数的基本问题

鉴于此功能:

def findArticleWithAttr(tableattrib, user_url_input):
    articles = Something.objects.filter(tableattrib=user_url_input) 
Run Code Online (Sandbox Code Playgroud)

我用以下函数调用该函数:

findArticleWithAttr(attribute1, userinput1)
Run Code Online (Sandbox Code Playgroud)

tableattrib不是由findArticleWithAttr属性1设置的,只是接受后者(userinput1)参数并替换它.

我怎样才能让python在等式中设置两个参数?

python function

2
推荐指数
1
解决办法
215
查看次数

使用Ajax请求获取对象值

我正在使用CodeIgniter和Ajax JQuery构建一个不错的应用程序,它最终返回一个很好的JSON类似对象,通过以下方式看出成功函数console.log ():

        var data2 = {"field":fieldname,
                "pagetitle":userdata};
        $.ajax({
                type: "POST",
                url: "getdata_ajax",
                dataType: 'json',
                data: data2,
                success: function(data) {
                   console.log(data);
                }
            }); 
Run Code Online (Sandbox Code Playgroud)

成功函数的结果:

在此输入图像描述

很长一段时间以来,我试图从该对象中获取一个值.我试过了

  • console.log (data.id)
  • console.log (data[id])
  • 等等

但没有任何效果.我敢肯定它只是一个愚蠢的事情.有帮助吗?

ajax jquery json

2
推荐指数
1
解决办法
1万
查看次数

在字符串中查找第一个不重复的字符

我读了一份求职面试问题,为下面写了一些代码:

编写一个有效的函数来查找字符串中的第一个非重复字符.例如,"total"中的第一个非重复字符是"o","teeter"中的第一个非重复字符是"r".讨论算法的效率.

我在Python中提出了这个解决方案; 但是,我确信有更好的方法可以做到这一点.

word="googlethis"
dici={}

#build up dici with counts of characters
for a in word:
    try:
        if dici[a]:
            dici[a]+=1
    except:
        dici[a]=1

# build up dict singles for characters that just count 1 

singles={}
for i in dici:
    if dici[i]==1:
        singles[i]=word.index(i)

#get the minimum value

mini=min(singles.values())

#find out the character again iterating...

for zu,ui in singles.items():
    if ui==mini:
        print zu 
Run Code Online (Sandbox Code Playgroud)

有更简洁有效的答案吗?

python algorithm

2
推荐指数
1
解决办法
6200
查看次数

如何将桌子放在桌子上的桌子上

我正在与 html 客户端对 CSS 的不良支持作斗争,我需要做一个带有表格布局的电子邮件模板。我只是无法在表格中正确放置和对齐表格。我用 valign 等尝试过,但这不起作用......

如何将一张桌子放在另一张桌子的顶部和中间?

为了说明我已经发布了这个小提琴:http : //jsfiddle.net/eabJh/1/

<td >Another nested table</td>是在中间位置,而不是在顶部,但在中间。

这是我的 html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <title></title>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <body style="background-color: black">
            <table background="http://i3.mirror.co.uk/incoming/article276604.ece/ALTERNATES/s615/tweet-that-ricky-gervais-jibe-at-mongs-pic-twitter-com-rickygervais-132840776.jpg"  width="810" border="20" bordercolor="white" style="border-style:solid; border-spacing:0px; border-collapse:collapse">
                <tr style="height:400px">
                    <td>test
                        <table width="380" cellspacing="0" cellpadding="2" align="center"  border="0">
                            <tr>
                                <td >Another nested table</td>
                            </tr>
                        </table></td>
                </tr>
            </table>

        </body>
    </html>


</html>
Run Code Online (Sandbox Code Playgroud)

html-table html-email

1
推荐指数
1
解决办法
5099
查看次数