小编pow*_*tac的帖子

jQuery:通过搜索style ="font-size:70%"来匹配元素?

如何匹配所有字体大小为70%的标签?

<a href="/tag/customersproducts" style="font-size: 70%; text-decoration: none;">customersproducts</a> 
<a href="/tag/dealers" style="font-size: 70%; text-decoration: none;">dealers</a> 
<a href="/tag/dealershops" style="font-size: 101%; text-decoration: none;">dealershops</a> 
<a href="/tag/dealersvendors" style="font-size: 120%; text-decoration: none;">dealersvendors</a> 
<a href="/tag/deliverymethods" style="font-size: 70%; text-decoration: none;">deliverymethods</a> 
<a href="/tag/departements" style="font-size: 70%; text-decoration: none;">departements</a> 
<a href="/tag/departments" style="font-size: 104.545%; text-decoration: none;">departments</a> 
Run Code Online (Sandbox Code Playgroud)

这不起作用:

$('a[style*=font-size:70%]')
Run Code Online (Sandbox Code Playgroud)

这是页面:http://cakeapp.com/tags/all,安装了jQuery进行测试......

css jquery

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

php在ajax帖子上返回空变量

我试图得到php和ajax帖子的悬念.我通过文本框将简单的用户输入发布到php页面.php页面接受用户输入,计算单词并将其作为响应发送回去.但它无法接收数据,回来说.为什么我该如何解决?

这是我的jQuery ajax邮政编码

var dataString = name;
$.ajax({
      type: "POST",
      url: "test_get.php",
      data: dataString,
      success: function(response) {
        alert(response);
      }
     });
    return false;
    });
});
Run Code Online (Sandbox Code Playgroud)

这是我的PHP代码

// if data are received via POST, with index of 'dataString'
if (isset($_POST['dataString'])) {
    $str = $_POST['dataString'];             // get data
    echo "The string: '<i>".$str."</i>' contains ". strlen($str). ' characters and '. str_word_count($str, 0). ' words.';
}

else echo 'There is no data!';
Run Code Online (Sandbox Code Playgroud)

php ajax jquery post get

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

为什么在php_info()输出中出现“带有角的帽子的维京人”?

运行时,右上角出现了一个奇怪的图像。phpinfo() 通常有PHP徽标。

到底是怎么回事?如何避免这种情况?

我的代码:

<?php
phpinfo();
Run Code Online (Sandbox Code Playgroud)

图片

php apache

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

PHP检查字符串是否有连续的下划线

如何检查字符串是否包含两个或多个连续的下划线(_)字符,例如.______等?

php

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

标签 统计

php ×3

jquery ×2

ajax ×1

apache ×1

css ×1

get ×1

post ×1