推薦理由:在線調(diào)試,編譯,運行.net代碼,同時支持C#,http://VB.NET,F(xiàn)#

推薦說明::對于.NET開發(fā)者來說是福音,因為我們可以不用再擔(dān)心環(huán)境與龐大的IDE的問題,不管在任何" />

国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

15158846557 在線咨詢 在線咨詢
15158846557 在線咨詢
所在位置: 首頁 > 營銷資訊 > 網(wǎng)站運營 > 有什么免費的網(wǎng)頁開發(fā)與代碼編輯軟件?

有什么免費的網(wǎng)頁開發(fā)與代碼編輯軟件?

時間:2023-11-25 01:30:01 | 來源:網(wǎng)站運營

時間:2023-11-25 01:30:01 來源:網(wǎng)站運營

有什么免費的網(wǎng)頁開發(fā)與代碼編輯軟件?:推薦工具:.NET Fiddle

推薦理由:在線調(diào)試,編譯,運行.net代碼,同時支持C#,http://VB.NET,F(xiàn)#

推薦說明::對于.NET開發(fā)者來說是福音,因為我們可以不用再擔(dān)心環(huán)境與龐大的IDE的問題,不管在任何時間,任何環(huán)境,如果有了什么點子,打開http://dotnetfiddle.net,輸入你的代碼;總的來說,它能夠讓你在瀏覽器窗體重復(fù)折騰代碼片段而無需運行Visual Studio。當(dāng)你僅僅是調(diào)試少量代碼時這實在是太方便了。.NET Fiddle的一個最大賣點就是它是免費的。

網(wǎng)站截圖:

看看我的代碼

using System;public class Program{ public static void Main() { string img = "i<img style='aaa' />j<Img style='bbb' />k<img style='ccc' ></img>"; Console.WriteLine(ReplacehtmlBody(img)); Console.WriteLine(ReplacehtmlBody2(img)); } public static string ReplaceRegex(string content, string regParen, string replyContent) { string strOutput = System.Text.RegularExpressions.Regex.Replace(content, regParen, replyContent); return strOutput; } public static string ReplacehtmlBody(string htmlBody) { if (string.IsNullOrWhiteSpace(htmlBody)) { return htmlBody; } return ReplaceRegex(htmlBody, "(i?)(//<img.*?style=['/"])([^//>]+//>)", "$2max-width: 80% !important;$3"); } public static string ReplacehtmlBody2(string htmlBody) { if (string.IsNullOrWhiteSpace(htmlBody)) { return htmlBody; } var reg = new System.Text.RegularExpressions.Regex("(//<img.*?style=['/"])([^//>]+//>)", System.Text.RegularExpressions.RegexOptions.IgnoreCase); return reg.Replace(htmlBody, "$1max-width: 80% !important;$2"); }}


<img style='max-width: 80% !important;aaa' />j<Img style='bbb' />k<img style='max-width: 80% !important;ccc' ></img>i<img style='max-width: 80% !important;aaa' />j<Img style='max-width: 80% !important;bbb' />k<img style='max-width: 80% !important;ccc' ></img>地址:

https://dotnetfiddle.net/

原文鏈接:.Net在線編輯工具.NET Fiddle

關(guān)鍵詞:編輯,免費

74
73
25
news

版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點擊下載Chrome瀏覽器
關(guān)閉