我無法獲得居中的菜單。我有圖像等中心很好,但我不能居中菜單。 下面是一些網站的CSS,涉及到的菜單: @charset "UTF-8";
/* CSS Document */
#nav {
width:975px; /* six main menu buttons at 150px per */
margin:1 auto; /* Based on a sugg
我嘗試使用下面的代碼居中屏幕上的減號在屏幕上減: text = "-";
textPosition = new Point();
Rect bounds = new Rect();
paint.getTextBounds(text, 0, text.length(), bounds);
paint.setTextAlign(Paint.Align.CENTER);
textPositio