高分求解,分不够再加

阿彪兄 2009-03-16 10:59:53
1.如何将Menu菜单的第一级菜单字体改为粗体?
2.如何将Menu菜单的箭头与文字距离拉近?
3.要在一个表格单元格中如何插入一个表格,要求这个表格距离单元格左右边距为2PX,怎么设置?
...全文
144 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
嘴哥臭鼬 2009-03-16
  • 打赏
  • 举报
回复
css...
wujinjian2008n 2009-03-16
  • 打赏
  • 举报
回复
css
Teng_s2000 2009-03-16
  • 打赏
  • 举报
回复
网络真奇妙,一搜就知道!!
CutBug 2009-03-16
  • 打赏
  • 举报
回复
http://msdn.microsoft.com/zh-cn/library/ms366731(VS.80).aspx
arjsyy 2009-03-16
  • 打赏
  • 举报
回复
1.style.font.weight="bold";
2.设置内边距或者是设置外边距padding-left:-10px;或者是:margin-left:-10px根据需要再做调整
3.同2
阿非 2009-03-16
  • 打赏
  • 举报
回复
css
gongsun 2009-03-16
  • 打赏
  • 举报
回复
up
三生Omier 2009-03-16
  • 打赏
  • 举报
回复
第一级菜单改为粗体,在程序里面设置他的字体树形为style=Bold

pgameli 2009-03-16
  • 打赏
  • 举报
回复
写一个css文件
再导入到页面文件中
调用下css类名就行了
真相重于对错 2009-03-16
  • 打赏
  • 举报
回复
使用css
hx_huang 2009-03-16
  • 打赏
  • 举报
回复
内事问百度,
外事问谷歌,
房事问天涯。
xsm545 2009-03-16
  • 打赏
  • 举报
回复
回帖是一种美德!
erytbc 2009-03-16
  • 打赏
  • 举报
回复
up
MAOGE1987 2009-03-16
  • 打赏
  • 举报
回复
下面的示例提供 Menu 控件的声明性代码。
<asp:menu id="NavigationMenu1" CssClass="menu1"
staticdisplaylevels="3"
staticsubmenuindent="0"
orientation="Vertical"
target="_blank"
Font-names="Arial, Gill Sans"
Width="100px"
runat="server">

<LevelMenuItemStyles>
<asp:MenuItemStyle CssClass="level1"/>
<asp:MenuItemStyle CssClass="level2"/>
<asp:MenuItemStyle CssClass="level3" />
</LevelMenuItemStyles>

<StaticHoverStyle CssClass="hoverstyle"/>

<LevelSubMenuStyles>
<asp:SubMenuStyle CssClass="sublevel1" />
</LevelSubMenuStyles>

<items>
<asp:menuitem text="Home" tooltip="Home">
<asp:menuitem text="Section 1" tooltip="Section 1">
<asp:menuitem text="Item 1" tooltip="Item 1"/>
<asp:menuitem text="Item 2" tooltip="Item 2"/>
<asp:menuitem text="Item 3" tooltip="Item 3"/>
</asp:menuitem>
<asp:menuitem text="Section 2" tooltip="Section 2">
<asp:menuitem text="Item 1" tooltip="Item 1"/>
<asp:menuitem text="Item 2" tooltip="Item 2">
<asp:MenuItem Text="Subitem 1"/>
<asp:menuitem Text="Subitem 2" />
</asp:menuitem>
<asp:menuitem text="Item 3" tooltip="Item 3"/>
</asp:menuitem>
</asp:menuitem>
</items>
</asp:menu>
下面的示例是 Menu 控件的 CSS 代码。
.level1
{
color: White;
background-color: Black;
font-variant: small-caps;
font-size: large;
font-weight: bold;
}

.level2
{
color: Blue;
font-family: Gill Sans MT !important;
font-size: medium;
background-color: Gray;
}

.level3
{
color: black;
background-color: Silver;
font-family: Gill Sans MT !important;
font-size: small;
}

.hoverstyle
{
font-weight: bold;
}

.sublevel1
{
background-color: Gray !important;
color: White !important;
font-variant: small-caps;
}

例子。。。。更多楼主参考CSS的属性来改咯~~
MAOGE1987 2009-03-16
  • 打赏
  • 举报
回复
CSS。。。或者更傻瓜的菜单生成器...

62,268

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧