在css中使用php来定位一个唯一的对象类

i have a page that automatically adds a number to a objects class name like this

<a href="#" class="clickBtn'.$clickid.'" >click</a>

$clickid is a number being successfully called from the database, so may be class="clickBtn296"

the next in the series may be class="clickBtn273"

how can i target all of these by class name, right now im trying everything i can think of, including

.clickBtn<?php echo $clickid ?>{
display:block;
}

but this isnt working, what can i do?

You can add another class by giving space.

<a href="#" class="myButtons clickBtn'.$clickid.'" >click</a>

Then add common css to target that class

.myButtons{
display:block;
}