MVC object htmlAttributes,IDictionary<string, object> htmlAttributes 写法

MVC object htmlAttributes:new {style="color:red",width="12px",height="10px"}。

IDictionary<string, object> htmlAttributes:new Dictionary<string, object>{{"id","test"},{"style","font-weight:bold;"}

o.AddHtmlAttribute("style","font-size:16px")

posted @ 2018-02-17 01:06  zzzp0755  阅读(123)  评论(0编辑  收藏  举报
今天的苦果,是昨天的伏笔,当下的付出,才是明日的花开!加油!!!加油!!!