javascript - Change button size present in WebBrowser dynamically -


i have string contains html content.

string str = "<html><head><meta http-equiv='content-type'content='text/html;charset=utf-8'><style>.containt-box{position:relative; margin-top:-10px;}h3{color:#000000;font-size: 14px;}h5.plaintext{color:#000000;font : 14px;}ul.b{liststyletype:square;position: relative;bottom: 0px;}li{font-size : 14px;}.containt-box p{color:#000000;}a:link{color:#ff6600;font-size: 14px;}p{color:#000000;font-size: 14px;}a.button{background-color: #ff6600;border: none;color: white;padding: 10px 15px;text-align:center;textdecoration: none;display: block;font-size: 16px;margin: 0 auto;width: 40%;}</style><script>function setappfont(fontfamily) { document.body.style.fontfamily = fontfamily; }</script></head><body><a href=\"http://www.google.com" class=\"button\">learn more</a></body></html>" 

this string displayed in webbrowser

xaml

 <phone:webbrowser x:name="descriptionbrowser"  grid.row="1" grid.rowspan="2"  navigating="descriptionbrowser_navigating" margin="0,15,0,0"/>   <textblock x:name="errorblock" visibility="collapsed" foreground="black" fontsize="20" grid.row="1" grid.column="1" horizontalalignment="center" verticalalignment="center"  fontfamily="segoe ui"/> 

c#

 if (string.isnullorempty(str))         {             errorblock.visibility = system.windows.visibility.visible;         }         else         {             descriptionbrowser.navigatetostring(str);             errorblock.visibility = system.windows.visibility.collapsed;         } 

my question want increase width size of link present in str in c# code.

<a href=\"http://www.google.com" class=\"button\">learn more</a> 

any appreciated.

though explanation looks confusing .

you can achieve setting bootstrap button class. if need change dinamically yo can use javascript change current cllass class mentioned below.

you create block level buttons—those span full width of parent—by adding .btn-block class .

you create long buttons adding .btn-lg class.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -