我试图在消息对话框的二级文本中显示一个链接(带有printf() - 样式),没有下划线。 我试过text-decoration:none;在CSS中删除链接下划线。没用。
CSS:
function calc_users($array) {
static $count = 0;
if (isset($array['center']['network'])) {
calc_users($array['center']['network']);
}
if (isset($array['left']['network'])) {
calc_users($array['left']['network']);
}
if (isset($array['right']['network'])) {
calc_users($array['right']['network']);
}
if (isset($array['left']['user_id'])) {
$count++;
}
if (isset($array['right']['user_id'])) {
$count++;
}
if (isset($array['center']['user_id'])) {
$count++;
}
return $count;
}
$arr = [
'left' =>null,
'center' => [
'user_id' => 1,
'network' => [
'left' =>null,
'center' => [
'user_id' => 1,
'network' => [
'left' =>null,
'center' =>null,
'right' =>null,
]
],
'right' => null
],
],
'right' => ['user_id' => 10, 'network' => []]
];
print_r(calc_users($arr));// print 3
如何从链接中删除下划线?
答案 0 :(得分:0)