首页 > 代码库 > zencart更改css按钮的宽度css buttons

zencart更改css按钮的宽度css buttons

includes\functions\html_output.php

大概323行的zenCssButton函数

  function zenCssButton($image = ‘‘, $text, $type, $sec_class = ‘‘, $parameters = ‘‘) {    // automatic width setting depending on the number of characters    $min_width = 80; // this is the minimum button width, change the value as you like    //$character_width = 6.5; // change this value depending on font size!    $character_width = 8.5; // change this value depending on font size!

修改其中的

$min_width = 80;$character_width = 8.5;

为你自己满意的值即可。



zencart更改css按钮的宽度css buttons