asp.net 开发手机网站和开发PC网站一样吗
在CSDN下载了几个例子,基本上都是以
<mobile:Label ID="Label1" Runat="server" BreakAfter="False"></mobile:Label>这种形式写
我试着用平常写PC站的方式写了一个,只不过在页头加入了下面几句
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
这样让页面自适应宽度,定义CSS的时候,也不写决定宽度,用百分比,也能达到想要的效果,
我想问下,这两种方式有什么区别,用哪一种比较好,