Search  
Monday, May 21, 2012 ..:: ホーム ::..   Login
 カテゴリ Minimize

    

 Visual Studio 2003 のHTMLデザイナで<FONT>タグを自動挿入させない。 Minimize
Location: BlogsCodes In The Attic.NETとかVBとか    
Posted by: take-c 2007/02/15 2:11

VS2003のWebフォーム、要するにHTMLのデザイナ画面でどこかキャレットを置く度に挿入されてしまう<FONT>タグ。鬱陶しいことこの上ないわけですが、bodyのfont-familyに"MS UI Gothic"を指定することで回避できます。


とは言うもののデザイン上"MS UI Gothic"以外のフォントも使いたいわけで…


<style>にちょっと細工を施します。


<html>
<head> ---中略--- <style type="text/css" runat="server" visible="false"> body {font-family:"MS UI Gothic"} </style> </head> ---後略---

実行時には出力されないタグにしてしまうのがミソ

Permalink |  Trackback

Your name:
Title:
Comment:
Add Comment   Cancel 

  

Copyright 2007 by TAKE-C   Terms Of Use  Privacy Statement
DotNetNukeョ is copyright 2002-2012 by DotNetNuke Corporation