无法在php中对齐css echo-jquery不起作用


cannot align css in php echo - jquery is not working

这里是代码的链接

http://snipsave.com/user/profile/karthikeyan#5352

问题是,当点击按钮视图时,它会从sql中获取数据并显示出来。。但当按钮使用CSS对齐时,它不起作用。。。

我只需要按钮在右边。。单击视图时。。它应该在下一行显示细节,在标题和内容之间留下一个缺口。。。

有人能帮忙吗??

感谢

应为文本对齐尝试替换您的原始代码

while($data = mysql_fetch_row($result)){
    echo("<div class='"pos_t'">$data[1]<button style='"text-align:right;'" class='"show'">View</button><i style='"display:none;'">$data[2]</i></div><br>");
}