如何匹配所有字体大小为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进行测试......
我试图得到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) 运行时,右上角出现了一个奇怪的图像。phpinfo() 通常有PHP徽标。
到底是怎么回事?如何避免这种情况?
我的代码:
<?php
phpinfo();
Run Code Online (Sandbox Code Playgroud)